z-index equivalent in wxPython?

All,

I have tried googling this, but I’m not sure that I can even come up with the right query, so I’ll post here. Is there an equivalent of the “z-index” used in CSS for wxPython?

I ask because I’d like a wxStaticBitmap to be forced to the top in all instances.

On Windows this works, since the layering appears to be done incorrectly, but on a Mac, the wxStaticBitmap seems to be relegated to the bottom, so I’d like to be able to force it to cover both cases.

Thanks.

I have tried googling this, but I'm not sure that I can even come up with
the right query, so I'll post here. Is there an equivalent of the "z-index"
used in CSS for wxPython?

no.

As a rule, wx was not designed to support overlapping wx.Windows.

I ask because I'd like a wxStaticBitmap to be forced to the top in all
instances.

On Windows this works, since the layering appears to be done incorrectly,
but on a Mac, the wxStaticBitmap seems to be relegated to the bottom, so I'd
like to be able to force it to cover both cases.

you might try changing the creation order, but who knows?

But more reliable may be to draw the Bitmap with a DC, rather than
using a wx.StaticBitmap.

Though I'm not sure off the top of my head how to force it to render
after everything else. It's take some experimenting.

-Chris

···

On Mon, Aug 27, 2012 at 8:06 AM, tdahsu <tdahsu@gmail.com> wrote:

Thanks.

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

--

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

I have tried googling this, but I'm not sure that I can even come up with
the right query, so I'll post here. Is there an equivalent of the "z-index"
used in CSS for wxPython?

no.

Depending on the platform and the wx and platform version, Raise() might work, but...

As a rule, wx was not designed to support overlapping wx.Windows.

...this is the official stance of the wxWidgets team: the behavior of overlapping sibling windows is undefined.

···

On 8/27/12 9:57 AM, Chris Barker wrote:

On Mon, Aug 27, 2012 at 8:06 AM, tdahsu <tdahsu@gmail.com> wrote:

--
Robin Dunn
Software Craftsman
http://wxPython.org

Thanks for the responses everyone. Raise() did exactly what I needed.

···

On Monday, August 27, 2012 1:05:10 PM UTC-4, Robin Dunn wrote:

On 8/27/12 9:57 AM, Chris Barker wrote:

On Mon, Aug 27, 2012 at 8:06 AM, tdahsu tda...@gmail.com wrote:

I have tried googling this, but I’m not sure that I can even come up with

the right query, so I’ll post here. Is there an equivalent of the “z-index”

used in CSS for wxPython?

no.

Depending on the platform and the wx and platform version, Raise() might
work, but…

As a rule, wx was not designed to support overlapping wx.Windows.

…this is the official stance of the wxWidgets team: the behavior of
overlapping sibling windows is undefined.


Robin Dunn

Software Craftsman

http://wxPython.org