OpenDCL Forums

OpenDCL => Studio/Dialog Editor => Topic started by: Jim Short on March 20, 2009, 06:46:15 AM

Title: Rectangle - Option Button Z/Order seem reversed
Post by: Jim Short on March 20, 2009, 06:46:15 AM
Place a Tab Strip on a Control Bar
Place a red rectangle on a Tab page
Place an Option Button in the center of rectangle
Note that option button will be behind the rectangle in studio when it is on top.
Its visible when rectangle is on top.

Show the control bar in AutoCAD.
Button respects Z/Order as expected.
5RC3
Title: Re: Rectangle - Option Button Z/Order seem reversed
Post by: owenwengerd on March 20, 2009, 07:18:48 AM
This is the same problem that is at the root of most of the reported repainting bugs: there is no way in Windows to control the window painting order of overlapping controls.
Title: Re: Rectangle - Option Button Z/Order seem reversed
Post by: Jim Short on March 20, 2009, 02:38:02 PM
Does that mean a difference may occur between Studio and runtime, or that sometimes runtime will display one way or the other?
In the first case overlapping controls can work reliably though inconvenient at design time, and in the second case not work period.
Title: Re: Rectangle - Option Button Z/Order seem reversed
Post by: Fred Tomke on March 20, 2009, 02:49:12 PM
Hi Jim,
From my experiences I can say that the display order of the runtime will always be that what you've arranged in the studio before. The OpenDCL Studio sometimes does not reflect the right display order you've arranged in the z/tab order pane.

Fred
Title: Re: Rectangle - Option Button Z/Order seem reversed
Post by: owenwengerd on March 20, 2009, 03:44:07 PM
The runtime should be reliably correct, but in studio the controls have to be displayed "nested" inside a disabled window so they are not interactive, which is what causes the problem.
Title: Re: Rectangle - Option Button Z/Order seem reversed
Post by: Jim Short on March 20, 2009, 04:31:18 PM
I am happy!

Hey Fred , did you look at the get descendants routine?

Jim