Re: OpenGL and overlapping widget

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

 



On 07/17/10 16:19, Michael Goffioul wrote:
> Hi,
> 
> I'm trying to use OpenGL with regular GTK+ widgets within the same
> window and I want to make the widgets (buttons, text fields...) to
> overlap the OpenGL area and appears in front of it. I tried with GtkGLArea
> and GtkGLExt, but all my tests were unsuccessful so far. In all cases,
> the OpenGL area will always appear in front, overlapping any GTK+ widget.
> 
> My test case is the following: create a GtkFixed widget with 2 children
> (added in that order):
> - 1 OpenGL area filling the whole allocated space of the GtkFixed
>   (GtkGLArea widget, or GtkGLExt-enabled GtkDrawingArea)
> - 1 button placed somewhere in the GtkFixed
> 
> What I need is to make the button to appear in front of the OpenGL area.
> I'm using Windows (but the target app must be cross-platform).
> 
> Any idea how can I achieve this?
> Thanks.
> 

Have you called gtk_widget_set_has_window on the GtkButton before it is
realized?

gtk_widget_set_has_window(button, TRUE);

If that isn't supported you may have to have another GtkFixed that's
used only for the button since I'm pretty sure GtkFixed supports having
it's own window.

Regards,

Andrew
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux