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 - Fields UPDATE

Fields UPDATE

Postby sheik on Mon Jan 05, 2004 9:25 am

I have a form with 7 fields and 2 buttons.When clicking any one of the 2 buttons,the fields either increase or decrease by 1.
My question:How to refresh the fields,when clicking on the buttons, without getting screen flashing.

Thanks a lot for any help.

Here is the codes:

int X,F,e;
fields(){
Form(FORM20,"DEMO");
for(F=1;F<8;F++){
Field(3000+F,0,(F*15),53,14,10,2,F+X);
}
Button(BUTTON1,0,30,130,0,0,"-1");
Button(BUTTON2,0,80,130,0,0,"+1");

}main(){
fields();
Fctl(DRAW,FORM20);

while(1){
e=Fevent(1);
switch(e){
case BUTTON1:Fctl(FREE,FORM20);X=X-1;fields();Fctl(DRAW,FORM20);
break;
case BUTTON2:Fctl(FREE,FORM20);X=X+1;fields();Fctl(DRAW,FORM20);
}
}
}


sheik
sheik
sheik
 
Posts: 9
Joined: Fri Oct 10, 2003 9:16 pm
Location: France

Postby jstadolnik on Mon Jan 05, 2004 2:30 pm

Don't free the form and rebuild it. Populate the form with all the buttons and fields you will need and use the Fctl SHOW and HIDE commands to hide/show the object you need.

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm
jstadolnik
 
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA

Postby sheik on Mon Jan 05, 2004 10:37 pm

Hi,
Thanks Joe.I tried various possible ways with Fctl HIDE/SHOW but can't get the fields updated with the new data.Please,can you give me an example .
Thanks for your help & time.

sheik
sheik
sheik
 
Posts: 9
Joined: Fri Oct 10, 2003 9:16 pm
Location: France

Postby jstadolnik on Mon Jan 05, 2004 11:07 pm

Use the FsetText() command the change the text of a field.

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm
jstadolnik
 
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA

Postby sheik on Thu Jan 15, 2004 11:38 am

Thanks,working fine with FsetText.As I have many fields,I am using FsetMany & FgetMany.The new problem is that I can't set the fields to <b>BOLD</b> type on the fly.
I want some fields to be bold or normal type depending on the fields value.
Thanks to show me any tricky way of doing it.

sheik
sheik
sheik
 
Posts: 9
Joined: Fri Oct 10, 2003 9:16 pm
Location: France

Postby jstadolnik on Fri Jan 16, 2004 2:19 am

Though it technically possible to do in the palmOS, changing the font of a live field is not currently supported with the PToolboxLib.

However, there is a trick you can do, which is to implement two fields on top of one another, one bold and one normal font. Then just HIDE/SHOW the active one of the two.

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm
jstadolnik
 
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA


Return to PocketC for Palm OS KB

Who is online

Users browsing this forum: No registered users and 0 guests

cron