Page 1 of 1

PostPosted: Tue Oct 22, 2002 11:31 pm
by Eli
I am trying to use CControls for designing my app. I need help understanding why the Cedit function does not open a dialog window as it does in the edit/test mode. I only get a line with an OK button. this would be ok, but for the fact that if the field is on the right side it raps the button to the other side of the display. How can i get it to give me the full dialog box with the CSetTopic field?


PostPosted: Wed Oct 23, 2002 9:34 am
by dcalp
Hello Eli:
Can you post some code? Your description (line with Ok button) seems the behavior of getsi() PocketC built-in function, not CControls'

Here is a little sample

//Edit sample
#include "Ccontrols.c"
Chandle Ed1;

int e;

Csettopic(Ed1,"The Topic");

if (Cevent(Ed1,e));



Pocket VisualForms
Visual design for PocketC

PostPosted: Wed Oct 23, 2002 3:21 pm
by Vilmos
Somewhere your CControls has been modified to use getsi oinstead of gets. There is a post in the archives telling you what to change to take advantage of getsi.

Or you got your CControls from someone like me who made that change a long way back. :)


PostPosted: Wed Oct 23, 2002 7:39 pm
by Eli
Vilmos: You where right. Apparently i had an old library or was using old Ccontrol.c files. I copied the ones that got generated from the palm and everything works!

DC: Thanks for you example i tried it after i fixed the libraries and everything works.

Now if i could only limit the number of characters like in bizlib and Ptoolbox edit commands. :)

thanks again.


PostPosted: Thu Oct 24, 2002 2:43 pm
by Vilmos
That isn't too hard. Just check the string length after you get the input. You will have to choose if you want to truncate or get the user to re-enter the string.


PostPosted: Thu Oct 24, 2002 8:05 pm
by visorprismman

I am wondering if anyone is having trouble saving the form in cedit?