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.
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.
– 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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.