[Mono-list] Gtk Fixed Z-order
cdhowie at gmail.com
Tue Dec 16 20:56:21 EST 2008
On Tue, Dec 16, 2008 at 4:30 PM, <nickstaves at codesnippersteam.com> wrote:
>> Hmm.. what happens if you use an EventBox instead of a Viewport?
> Working as well.
> Thanks for hint!
I believe what's going on here is that some widgets, like labels,
don't require their own Gdk.Window so they just draw on their parent.
The problem is that these widgets will *always* appear under widgets
that have their own Gdk.Window. EventBox is a widget that draws
nothing but intentionally creates a Gdk.Window for itself. It's
intended to be used to capture events to things like labels -- since
there is no window to capture the click, you can't tell which widget
received the click except that you know the nearest parent got a
click. But it also works in situations like this, to give labels and
other such widgets a Window above other widgets to draw on.
More information about the Mono-list