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 - Dynamic forms drawing w/o DRAW

Dynamic forms drawing w/o DRAW

A PocketC native palm library offering native forms and assorted utilities

Postby haines on Tue Mar 20, 2007 10:10 pm

i have one form and 3 dialogs defined one after the other. I then call the form with a DRAW. The form is drawn fine but all of the dialogs are also drawn without a DRAW command. As soon as I tap the OK button on the dialog, another draws. I'm confused. Here is part of the code that defines the objects.
//Load Menu
OpenRsrcDb("LearnItMenu");

//Main form
Form(frmMAIN,"LearnIt!");
textattr(5,1,0); //change font
Button(rptQUP,53,149,18,13,8,"\x01");
Button(rptQDN,53,149,58,13,8,"\x02");
Button(rptAUP,53,149,90,13,8,"\x01");
Button(rptADN,53,149,131,13,8,"\x02");
textattr(font,1,0); //revert to selected font
Button(butEXIT,0x20,3,146,20,12,"Exit");
Button(butANSWER,0x20,87,73,41,12,"Answer");
Button(butQUEST,0x20,31,73,41,12,"Question");
Button(butOPEN,0x20,40,146,26,12,"Open");
Button(butDB,0x20,70,146,15,12,"DB");
Button(butRNDM,0x20,112,146,9,12,"R");
Button(butALPHA,0x20,125,146,9,12,"A");
Field(fldQuestion,272,13,21,134,45,500,"\x00"); //set bits 4 and 8
Field(fldAnswer,272,13,95,134,47,500,"\x00"); //set bits 4 and 8
textattr(3,1,0); //change font
Button(butBACK,0x30,91,148,13,8,"\x03");
textattr(font,1,0);// reset font
Handera(6,frmMAIN); //scale form to fit handera screen
Fctl(SETMENU,Menu);

Dialog(frmABT, 30, 40, 100, 100, "About LearnIt");
Button(butAbtOK,0x20,2,86,15,12,"OK");
Field(fldABT,272,2,15,96,75,100,"\x00");
Handera(6,frmABT); //scale form to fit handera screen

Dialog(frmOPEN, 30, 40, 100, 80, "Open File");
Button(butOpenOK, 0x20,2,65,20,12, "OK");
Button(butOpenCncl,0x20,65,65,30,12, "Cancel");
Button(chkOpenDB,0x32,10,20,20,15,"DB");
Button(chkOpenMm,0x32,50,20,20,15,"Memo");
Field(fldOPEN,0x01,10,40,80,13,40,"File");
Handera(6,frmOPEN); //scale form to fit handera screen

Dialog(frmFONT, 30, 40, 100, 80, "Font");
Button(butFontOK,0x20,2,66,17,12,"OK");
Button(chkFontNml,0x32,25,23,55,15,"Normal");
Button(chkFontBold,0x32,25,38,55,15,"Bold");
textattr(font,1,0); //revert to selected font
Handera(6,frmFONT); //scale form to fit handera screen
Fctl(DRAW,frmMAIN);
haines
 
Posts: 29
Joined: Fri Feb 15, 2002 8:55 pm
Location: USA

Postby jstadolnik on Tue Mar 20, 2007 11:00 pm

The problem is likely in your event handling code. Use the multiform_demo.c sample file the PToolbox release .zip as an example.

-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 Pocket Toolbox

Who is online

Users browsing this forum: No registered users and 4 guests

cron