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 - need a little help using multiple resource forms

need a little help using multiple resource forms

A PocketC native palm library offering native forms and assorted utilities

Postby RunningUtes on Thu Sep 08, 2005 1:25 pm

I am having errors using resource forms. I have a main full size form and a half size form in a resource.prc file. In pseudo code, the order of all my commands that affect the forms loading are:
sony(1,1) /*load the sony screen*/
OpenRsrcDb("resource") /*load my resource forms file*/
Fctl(LOAD,form1) /*full size form, has button1*/
Fctl(Load,form2) /*half size form, has button2*/
Fctl(DRAW,form1) /*draw form*/
while(1)(switch(Fevent(1)){ /*wait till button1 is pushed, then load form2*/
case button1:function call for form2
Fctl(DRAW,form2) /*draw form*/
SetFore(color)
Rect(mode,x1,y1,x2,y2,r)
while(1)(switch(Fevent(0)){ /*wait for button2 to exit form2*/
case button2:
Fctl(FREE,form2) /*get rid of form2*/
Fctl(DRAW,form1) /*reload form1*/
}
}

Form1 works great. I can use the FsetText and FgetText perfectly. I thought of adding form2 to show a graphical representation, but after doing so, all the text in form1 is garbled.
I have read over the 25 caveats in the doc file, but am still having problems.

What is the order to load multiple forms, display them, free up a few and redisplay a few.
RunningUtes
 
Posts: 20
Joined: Sun May 30, 2004 3:27 am

Postby jstadolnik on Thu Sep 08, 2005 1:53 pm

Did you set the SAVEBEHIND option on FORM2?

Also make sure FORM2 is a DIALOG type (since it's being popped on top of another).

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">
What is the order to load multiple forms, display them, free up a few and redisplay a few.
<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">

Generally, you should switch forms (Fctl DRAW) before freeing the previous form.

-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 RunningUtes on Thu Sep 08, 2005 2:08 pm

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">Did you set the SAVEBEHIND option on FORM2?

Also make sure FORM2 is a DIALOG type (since it's being popped on top of another).

<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">
Yes, savebehind is checked for form2 as is modal.
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">
Generally, you should switch forms (Fctl DRAW) before freeing the previous form.
<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">
I also switched the order of Fctl so that DRAW,form1 is before FREE,form2 but am still having the same error.
RunningUtes
 
Posts: 20
Joined: Sun May 30, 2004 3:27 am

Postby jstadolnik on Thu Sep 08, 2005 2:38 pm

If you remove the Sony() call, what happens? (Things should still be in high-res.)

Also make sure that you are using v7.6.2 of the library.
http://pocketc.net/forum/topic.asp?TOPI ... rms=v7.6.2

-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 2 guests

cron