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 - Bug in Button?

Bug in Button?

A PocketC native palm library offering native forms and assorted utilities

Postby SyPDA on Thu Sep 06, 2001 4:15 am

Hi Joe!

Within my new project I need a small button on top of a large button. I just found out, that the button routine behaves differently in OS 4.0 and OS 3.5.

I used the following code on a real m505 (OS 4.0):
<pre id=code><font face=courier size=2 id=code>
Form(FORM1,"Titel");
Button(BUTTON1,0x30,40,17,32,32,"");
Button(BUTTON2,0x30,40,17,8,12,"");
</font id=code></pre id=code>

I use a background picture and these are two invisible buttons, that overlay this picture. The smaller one is on top of the larger button and on an OS 4.0 machine this works just fine.

Then I tried this code on a real Vx (OS3.5.0) and was not able to activate the smaller button. It was just overlayed by the bigger one. I found out that by changing the code sequence to
<pre id=code><font face=courier size=2 id=code>
Form(FORM1,"Titel");
Button(BUTTON2,0x30,40,17,8,12,"");
Button(BUTTON1,0x30,40,17,32,32,"");
</font id=code></pre id=code>

I could again use the smaller button on this machine.

BUT: The above code doesn't work any longer on OS 4.0!

I'm not sure if this is an OS problem and my only solution at the moment would be a routine that identifies the OS and sets the right sequence.

Maybe you can help? :)



Edited by - SyPDA on 09/05/2001 23:16:48
SyPDA
 
Posts: 94
Joined: Tue Dec 05, 2000 8:08 am
Location: Germany

Postby jstadolnik on Thu Sep 06, 2001 12:39 pm

The overlap behavior for form objects changed in OS4.0.

For pre-OS3.5 systems the button first installed takes precedence. For OS4.0+ systems, the button last drawn takes precedence.

Try this code:

<pre id=code><font face=courier size=2 id=code>
Form(FORM1,"Titel");
Button(BUTTON2,0x30,40,17,8,12,"");
Button(BUTTON1,0x30,40,17,32,32,"");
Fctl(DRAW,FORM1);
Fctl(SHOW,BUTTON2);
</font id=code></pre id=code>

Joe
jstadolnik
 
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA

Postby SyPDA on Sat Oct 06, 2001 11:23 am

Hmm... that trick does not work. :(

I tested it with the same devices (plus an OS 3.0 Palm III machine) and have the same problem.

Do you have any other idea?
SyPDA
 
Posts: 94
Joined: Tue Dec 05, 2000 8:08 am
Location: Germany

Postby jstadolnik on Sun Oct 07, 2001 2:45 am

It turns out that there is no work around other than changing the order in which the objects are installed.

Some rocket scientist at Palm decided to reverse the order in which object events are scanned for OS4.0. <img src=icon_smile_angry.gif border=0 align=middle>

Joe
jstadolnik
 
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA

Postby SyPDA on Sun Oct 07, 2001 3:31 pm

Ok. Thanx anyway.

I have a routine that checks for the OS version and initializes the forms according to the found version. It works quit good... :)
SyPDA
 
Posts: 94
Joined: Tue Dec 05, 2000 8:08 am
Location: Germany


Return to Pocket Toolbox

Who is online

Users browsing this forum: No registered users and 1 guest

cron