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.
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:
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
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: