Layers

Is there a way to stack windows in Z dimension? I find that quite useful
in
Android, and it would be useful here. I don’t see it in the docs or the
C++
book, so perhaps it’s a wish list item.

For example, I have a gauge to display with a moving dial pointer. Due
to
the fact that the pointer crosses several colors, simply “un-writing”
the
pointer before moving it will not work, so I need to redraw the
underlying
gauge which often hiccups even on my 4-core Ubuntu system.

If sizers could stack in Z, the top pane would be transparent except for
the
dial pointer and it would be the only thing redrawn.

On Sat, Dec 18, 2010 at 3:07 AM, Chauk-Mean P.
[email protected]wrote:

Hi, Chauk-Mean -
I suspect that that refers to the window / frame relative to the window
manager hierarchy, the OS. What I want to do is to stack panels inside
a
sizer such that they overlap. I haven’t seen anything on that.

Hi,

2010/12/13 Don W. [email protected]:

Is there a way to stack windows in Z dimension?

I haven’t used them yet , but there are two methods that control the
z-hierarchy of a window.
Window#bring_to_front and Window#send_to_back.

Cheers,
Chauk-Mean.

On Sun, Dec 19, 2010 at 2:00 PM, Chauk-Mean P.
[email protected]wrote:

manager hierarchy, the OS. What I want to do is to stack panels inside
wxTrac has been migrated to GitHub Issues - wxWidgets).
According to the ticket, overlapping windows/controls are not advised.
Unfortunately the wxWidgets documentation has not been updated
accordingly (http://docs.wxwidgets.org/stable/wx_wxwindow.html#wxwindow).
Regarding wxRuby, I’ll fix the documentation to clarify this point.

Yes, it does appear to be a design decision. Very useful ‘would be
nice’,
though! :smiley:

Thanks, Chauk-Mean.

Hi Don,

2010/12/18 Don W. [email protected]:

– Don W.
It seems that you’re right.
Window#bring_to_front and Window#send_to_back correspond respectively
to wxWidgets Window#raise and Window#lower. The methods have been
renamed for consistency and to avoid name conflict with Kernel#raise.
And raise and lower work only for top level windows (see
wxTrac has been migrated to GitHub Issues - wxWidgets).
According to the ticket, overlapping windows/controls are not advised.
Unfortunately the wxWidgets documentation has not been updated
accordingly
(http://docs.wxwidgets.org/stable/wx_wxwindow.html#wxwindow).
Regarding wxRuby, I’ll fix the documentation to clarify this point.

Cheers,
Chauk-Mean.