Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3368: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3370: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3371: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3372: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
OrbWorks Community Forum • View topic - Cedit Entry box

Cedit Entry box

User interface libraries written in PocketC

Postby Eli on Tue Oct 22, 2002 11:31 pm

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?

Eli
Eli
 
Posts: 42
Joined: Fri Oct 11, 2002 10:57 pm
Location: USA

Postby dcalp on Wed Oct 23, 2002 9:34 am

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;

main(){
int e;
graph_on();
title("Sample");

Ed1=Cedit(13,25,30,2,1,0);
Csettopic(Ed1,"The Topic");
Csetcontent(Ed1,"?");
clearg();
Cdraw(Ed1);

while(1){
e=event(1);
if (Cevent(Ed1,e));
}
}

Regards



DC

Pocket VisualForms
Visual design for PocketC
http://pocketvf.port5.com
http://www.angelfire.com/rnb/pocketvf
Diego

Pocket VisualForms
Visual design for PocketC
http://www.diegocalp.com.ar
dcalp
 
Posts: 115
Joined: Thu Dec 06, 2001 9:53 am
Location: Argentina

Postby Vilmos on Wed Oct 23, 2002 3:21 pm

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. :)

Vilmos
http://www.pocketdimension.com
Vilmos
 
Posts: 174
Joined: Tue Dec 05, 2000 6:13 pm
Location: Canada

Postby Eli on Wed Oct 23, 2002 7:39 pm

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.


Eli
Eli
 
Posts: 42
Joined: Fri Oct 11, 2002 10:57 pm
Location: USA

Postby Vilmos on Thu Oct 24, 2002 2:43 pm

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.



Vilmos
http://www.pocketdimension.com
Vilmos
 
Posts: 174
Joined: Tue Dec 05, 2000 6:13 pm
Location: Canada

Postby visorprismman on Thu Oct 24, 2002 8:05 pm

Hey,

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



Cheers
Cheers
visorprismman
 
Posts: 26
Joined: Fri Sep 13, 2002 4:27 pm
Location: USA


Return to CControls and PocketGUI

Who is online

Users browsing this forum: No registered users and 1 guest

cron