[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
widget transparent for events ...
- From: Laurent Sauvebois <Laurent Sauvebois ns mecalog fr>
- To: Gtk devlpt List <gtk-app-devel-list redhat com>
- Subject: widget transparent for events ...
- Date: Wed, 27 Oct 1999 16:44:37 +0000
Hi,
let's re-re-re-start the gtkglarea_overlay question in 2 parts :
1st part :
last time ( 2 months ago, i think), someone gave me an advice to build a
transparent widget : do not give any window to your widget. Ok fine ....
so, I looked to the checkbutton widget code, and added a
"GTK_WIDGET_SET_FLAGS (gl_overlay, GTK_NO_WINDOW);" in my
gtk_gl_overlay_init function .
the result is quite impressiv'. the widget is entirely transparent ....
and i do not see anything, even what i am trying to draw inside :-( !
does anyone know why ?
2nd Part :
In fact, with another approach, I succeed to have an overlay over my
gtkglarea, and i even succeed in drawing in both. This looks good.
However, I have a trouble with the events. an expose event, in overlay,
occures as soon as you pick a window somewhere on the screen. So, my
idea would be to keep my overlay like this, but to force X, to ignore
this window for ANY event. just act as if there where no overlay !
does any one know how to do this ?
my current workaround, is to keep my overlay back, when I do not use it,
and when i decide to draw inside, I raise it on top. the trouble with
this method, is that there is a "flash", when I raise my window.
thank you in advance for any help ..... I really think this could be a
good feature for gtk, to provide a working-overlay-method !
Laurent
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]