[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: widget transparent for events ...




-----Original Message-----
From: Laurent Sauvebois <Laurent.Sauvebois@ns.mecalog.fr>
To: Gtk devlpt List <gtk-app-devel-list@redhat.com>
Date: 27 October 1999 15:45
Subject: widget transparent for events ...


>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 ?
>

You can only draw on a drawable.  A window is a drawable.  Your widget has
no window so you have nothing to draw on.

Ian





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]