Page 1 of 1

PostPosted: Wed Sep 25, 2002 3:55 pm
by design4use
I noticed that while redrawing a form overlapping objects (some are gadgets, some are buttons) often get drawn in a z-order that seems to be different then what I see in the IDE form preview. What determines which objects get drawn first and which ones are getting drawn on top? (It does not seem to be by ID either a swapped IDs in the .orb file and nothing seemed to change)
Is that something that can be controlled programmatically?
Thanks for any clues...

PostPosted: Wed Sep 25, 2002 4:40 pm
by jstadolnik
One additional complicating factor is that the object draw order is different in OS4.x+ verses previously OS versions. So depending on what OS you are running, the overlapping behavior will be different.

Even if the object placement ordering scheme for OrbForms is made public, you'll still have problems due to the OS differences.

The only workaround to this issue that I'm aware of is to use dynamic form objects and to change their installation order depending on the OS version, but alas OrbForms does not currently support dynamic form objects.


The PToolboxLib guy.

PostPosted: Thu Sep 26, 2002 12:56 am
by dewey
For what it is worth (not much given the OS differences), the order of the controls in the form is the same as their order in the project tree - right-click to move up and down.

PostPosted: Sun Nov 17, 2002 7:31 pm
by wildangus
I have the same problem.
To reproduce the problem create a form with a formbitmap and attach a 160x160 bitmap. This is for a background.
Create a button and attach a bitmap. The button should sit in front of the background but doesn't.
The zorder on the IDE is backward from the order when the App runs on the emulator. I don't know if the IDE is backward or the App but something is wrong. The same behaviour occurs whether I use a 4.0 ROM or a 3.5 ROM.
Can someone look at this problem and fix it as I am considering purchase of OrbForms.


Wild Angus }:-)