z-order of objects drawn?

Discuss OrbForms Designer and PocketC Architect

Postby design4use on Wed Sep 25, 2002 3:55 pm

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...
Posts: 128
Joined: Fri May 10, 2002 3:31 pm

Postby jstadolnik on Wed Sep 25, 2002 4:40 pm

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.
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA

Postby dewey on Thu Sep 26, 2002 12:56 am

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.
Site Admin
Posts: 749
Joined: Sun Oct 21, 2007 5:12 am

Postby wildangus on Sun Nov 17, 2002 7:31 pm

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 }:-)
Wild Angus }:-)
Posts: 7
Joined: Sun Nov 17, 2002 7:23 pm
Location: United Kingdom

Return to OrbForms Designer and PocketC Architect

Who is online

Users browsing this forum: No registered users and 4 guests