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 - small forms on large forms
Page 1 of 1

PostPosted: Sat Apr 13, 2002 1:21 pm
by tthkbw
with PtoolboxLib 7.3.4 I am using resource forms. I have a mainform which is full screen (160x160) and when a certain event occurs, I load and draw a smaller form (80x80 say). Then I start trapping events using Fevent(1) for this form's buttons and use this kind of code:

done = 0;
while (!done) {
id = Fevent(1);
switch (id) {
case BUTTON1:
break;
case BUTTON2:
break;
case BUTTONQUIT:
Fctl(Free,thisForm);
done = 1;
} //end switch
} //end while

Everything works perfectly until the naive tester touches the stylus outside of the bounds of the smaller form. Following that, all subsequent touches anywhere on the screen are ignored and I have to hit the apps button to quit the application.

I find that the events PENUP and PENDOWN are generated, and I can trap them, but the only useful thing I can do is Fctl(FREE,thisForm) and exit the while loop. Doing that causes screen garbage on restore of the original form (is this the POSE bug mentioned in PtoolboxLib documentation??).

I guess the question is: why, after the pen event outside the form boundaries do I not get anymore button events when I tap in the bounds of the form on a button that previously worked?

tthkbw

PostPosted: Sat Apr 13, 2002 1:28 pm
by tthkbw
Some additional information:

The small form is loaded at 80,20. It appears that after the form is loaded and drawn, and then a pendown occurs outsided the bounds of the form, that the button events for the form are occurring as if the form had been moved to location (0,0).

In fact, if I change the original location of the new form to (0,0), the problem disappears.

A bug, or just something I don't understand??


tthkbw

PostPosted: Sat Apr 13, 2002 8:53 pm
by jstadolnik
Less than full screen sized forms (i.e. dialogs) should always have the modal bit set. Do you have it set?

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm

PostPosted: Sat Apr 13, 2002 11:07 pm
by tthkbw
Thanks, Joe, you are a wealth of information. Is this just the normal learning process, or is there something I should have read to understand this??

tthkbw

PostPosted: Sun Apr 14, 2002 3:11 am
by jstadolnik
As far as I know, this particular problem is not documented anywhere, not even in the PalmOS documentation... and this is really one of those PalmOS "features/bugs".

Much of what the PToolboxLib does is expose palmOS API to the PocketC user. The catch is that there are many undocumented PalmOS caveats, some effecting only some OS versions, some effecting all. The ones I'm aware of I try either patch if possible, or document. When I release a new feature, I generally try to test the most common usage cases, but time and time again users get creative and try things I've never considered... like yourself.

When a user stumbles across strange behavior, especially with the form stuff, they would likely also hit the same anomoly if they were using a different development platform (gcc/codewarrior/mobileStudio/quartus forth/onboardC/etc).

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm