Developments in CControl & CEditor

Discuss PocketC for Palm OS (including Desktop Edition)

Postby Power on Tue Feb 06, 2001 3:17 am

CControls & CEditor is the next best thing to developing programs in PocketC (much like visual programmings in windows <img src=icon_smile.gif border=0 align=middle>). CEditor makes the GUI front end and generated codes for PocketC <img src=icon_smile.gif border=0 align=middle> all you need to do is to add the codes that do specific task. <img src=icon_smile_cool.gif border=0 align=middle>

Any suggestions and bug report will be appreciated... <img src=icon_smile_wink.gif border=0 align=middle>
Posts: 31
Joined: Sun Feb 04, 2001 8:51 am
Location: Philippines

Postby Velvis on Wed Feb 07, 2001 1:21 pm

Why dont we start by listing features we would like to add.

Here are my suggestions:

Status Bars
add the beep(7); function to all controls so they have proper PalmOS sound
add up/down button control to listboxes/tables
add better menu support (ie titlebar access (like OS 3.5) and auto popup/dropdown of menus)
add support for other builtin system fonts in the button controls

Also Ceditor should be updated to intercept hard/soft buttons so it wont exit without saving the current project.
Posts: 226
Joined: Mon Dec 11, 2000 2:32 am

Postby adh on Mon Feb 19, 2001 1:12 pm

Is the source code to CEditor available?
I would like for CEditor to be able to work with 'projects'. Where each project could have multiple forms.
Posts: 1
Joined: Mon Feb 19, 2001 1:09 pm
Location: USA

Postby Power on Mon Feb 19, 2001 11:10 pm

hi adh

thank you for your interest in CEditor..
that is also included in my wish list <img src=icon_smile.gif border=0 align=middle>
but actually for the mean time you can make it work by adding the code for the links...

example.. you have form A.. there is a button.. you can simply add code to point the form B (in form B the main code should be renamed)... <img src=icon_smile.gif border=0 align=middle>

but ofcourse we will add this wish to the list <img src=icon_smile.gif border=0 align=middle>
Posts: 31
Joined: Sun Feb 04, 2001 8:51 am
Location: Philippines

Postby Vilmos on Tue Feb 20, 2001 12:40 am

One comment about adding the beep to all controls. The first thing I did was turn the darn system sounds off because they are so annoying! I'd suggest that the sounds be an option instead of always on. Checking the system prefs would be ideal of course.

Posts: 174
Joined: Tue Dec 05, 2000 6:13 pm
Location: Canada

Postby Velvis on Fri Mar 09, 2001 3:25 am

If we added a beep(7) to all the controls, the PocketC respects the PalmOS sound settings so this would be no different than a true native PalmOS app.

I have another "fix" for CControls. When the text for the tables is longer than the space available, the truncated text is 1 character too long. It looks fine until a table needs to be scrolled then it destroys the dashed line separating the text fields.

Is someone maintaining a list of fixes/suggestions?
Posts: 226
Joined: Mon Dec 11, 2000 2:32 am

Postby stephane on Fri Mar 09, 2001 3:49 pm

Hi all,

I'll be putting up a 'wish list' for fixes and suggestions for future versions of Ccontrols and CEditor at , the CCU website, soon.

Send any suggestions about <b>Ccontrols</b> to me at, even if you've already posted them here on the board.

Send suggestions about <b>CEditor</b> to so that Nelson (aka Power) can get a copy of it too.

Both Nelson and I have been quite busy with our respective employers as of late (he with a new contract and me with tight deadline <img src=icon_smile.gif border=0 align=middle> ) so we're not able to work on these tools as much as we'd like to, for the next little while.

That being said, though, I only need to clean up the documentation and finish one of the demo programs before v1.1 of Ccontrols is released. Shouldn't be too much longer..



Edited by - stephane on 03/09/2001 10:11:02
Posts: 71
Joined: Fri Jan 12, 2001 3:16 am
Location: Canada

Postby retropolis on Tue Mar 13, 2001 1:21 am

I think it would be nice if the edit boxes could have better handling of text too big to fit inside them.

As it stands, if the width of text entered by the user is greater than the size of the box there'll be an overflow outside the box (with some stray characters remaining on the screen or overwriting other controls)

There's no way that I know of in Ccontrols to prevent this, although I have managed a simple workaround using saveg() and restoreg(). However, it would be nice to specify the max number of allowed characters for a Ccontrols edit box within the control itself.

Also, the ability to enter text directly into the edit box without the popup input and to highlight text within the edit box etc. would be great!

I'm very interested in seeing the next generation of Ccontrols, they're awesome!

30 years behind the competition.
30 years behind the competition.
Posts: 18
Joined: Mon Mar 12, 2001 7:58 pm
Location: USA

Postby iebnn on Tue Mar 13, 2001 7:59 pm

yes, a working edit field is a MUST.... apps that use text input and GUIs cannot easily be done with PocketC ATM. And a TCP/IP lib would be nice :)
Posts: 42
Joined: Fri Feb 09, 2001 8:40 pm

Postby Power on Sat Apr 14, 2001 3:02 am

hi. it's a been a while, since my last email, been very busy last march. anyway, the renovation work is finish.almost finish the commented version of CEditor.for those whom i furnish a copy of the original code. you might find it interesting. dont print it out yet, will try to finish it in a few days. here's just a preview of the work...

Comments of CEditor code
Struct - 98% complete
Popup - 100% complete
Menu 100% complete
Editor - 99% complete
Command - 80% complete
Control0 - 90% complete
Control1 - 0% complete
Control2 - 10% complete
Generate - 0% complete
Menu - 0% complete
Save - 40% complete

prepare the wish list. here's my wish list

internal bmp editor
internal bmp library handling routine
crc generator
still thinking of other things to add...

eshepard's list will be noted. update will be made when commenting the code is done. his list are as follows...

- create an in-place edit control
- CControls generated source formatting should be improved, split into further memos if necessary
- use malloct, not settype
- CControls functions should have more descriptive names
- tap on top of screen should activate menu bar
- use ptoolboxlib for drawing?
- use switch not elseifs in messageloop, other performance tricks
- precompile option to allow CControls to be used as a lib
- fix confusion of "row" and "column" terminology for Ctable in CEditor and in source
- CEditor loses column ("row") widths when form saved

Edited by - Power on 04/13/2001 22:03:55

Edited by - Power on 04/21/2001 19:27:09
Posts: 31
Joined: Sun Feb 04, 2001 8:51 am
Location: Philippines

Postby Power on Sat May 05, 2001 10:41 pm

Update of CEditor is available. gave it to Stephane so that he can post it on the tibonet site.
Here's the changes that i made so far...

- hard button capture will ask to save before exiting pocketC
- new handling of new controls using form rather than popup
- test failed on making the upper left corner screen as menu popup
dont know why it wont work... the entire upper side "freezes" from accepting
new taps from stylus. still checking this out and why.

it's a start... and i hope to add more in the coming days

i'm keep track of the wishlist. if you get a copy test these out and give me some feedback/comments

Edited by - power on 05/05/2001 17:47:37
Posts: 31
Joined: Sun Feb 04, 2001 8:51 am
Location: Philippines

Postby Power on Sat May 05, 2001 11:08 pm

can someone provide me a good sample code of the PocketC Library (so that Ccontrol can be converted to a library format too)? the sample code with the pocketc package is not enough. it does not show how to pass function like "puts" within the library. i learn a lot by exmple.
Posts: 31
Joined: Sun Feb 04, 2001 8:51 am
Location: Philippines

Postby jstadolnik on Mon May 07, 2001 2:32 am


Here are some links to native libarary examples. (To my knowledge there are only 3 libs available with source code, one of them being the PockeClib included with pocketC).

You will need to learn some of the palm API to do fast text, rectangle, and frame drawing. Check out the "Win" prefixed API functions.

BTW: The next release of the PToolbox will have dynamic form object support using the palm API (buttons of all flavors, in-place edit text fields, and lists). It's pretty much done, I'm just putting the icing on the cake now (though I'm still at least 2 weeks away from a release). You may want to hold off on your efforts until you see what holes remain.

Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA

Postby SyPDA on Mon May 07, 2001 7:34 am

Great! Hopefully you can do it faster than two weeks. <img src=icon_smile.gif border=0 align=middle> Can't await to use the new version... <img src=icon_smile_wink.gif border=0 align=middle>
Posts: 94
Joined: Tue Dec 05, 2000 8:08 am
Location: Germany

Return to PocketC for Palm OS

Who is online

Users browsing this forum: No registered users and 3 guests