Re: GTK+ Draw a Rectangle over other widgets?
On 12:33:05 am 21/08/2006 Wolfman [EMAIL PROTECTED] wrote: @Stefan Can u tell me how to call the expose in simple example? You don call that, gtk+ calls that to ask the widget to redraw. See bt_sequence_view_expose_event() in http://buzztard.cvs.sourceforge.net/buzztard/buzztard/src/ui/edit/sequence-view.c?revision=1.23view=markup Stefan ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
GTK+ Draw a Rectangle over other widgets?
Does someone know how can draw a simple rectangle over other widgets or a complete window? Cause iam trying to write a window splitting system but i dont know how to draw this rectangle...:( best regards.. -- View this message in context: http://www.nabble.com/GTK%2B-Draw-a-Rectangle-over-other-widgets--tf2132346.html#a5884946 Sent from the Gtk+ - Apps Dev forum at Nabble.com. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: GTK+ Draw a Rectangle over other widgets?
hi, Wolfman wrote: Does someone know how can draw a simple rectangle over other widgets or a complete window? Cause iam trying to write a window splitting system but i dont know how to draw this rectangle...:( best regards.. you can subclass the widget, override the _expose_event() call parent implementation and then draw over using normal gdk drawing functions. Stefan ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: GTK+ Draw a Rectangle over other widgets?
@Stefan Can u tell me how to call the expose in simple example? @Matt Do u mean something like an overlay window? That could also do this job but is there a way to make a popup window transparent? -- View this message in context: http://www.nabble.com/GTK%2B-Draw-a-Rectangle-over-other-widgets--tf2132346.html#a5898841 Sent from the Gtk+ - Apps Dev forum at Nabble.com. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: GTK+ Draw a Rectangle over other widgets?
Wolfman wrote: Does someone know how can draw a simple rectangle over other widgets or a complete window? Cause iam trying to write a window splitting system but i dont know how to draw this rectangle...:( You can't just draw a rectangle in order to group widgets. Well, I suppose you can but it's not a very good idea. For example, if the user resizes your window, the widgets would then most likely not end up where you'd want them with respect to the rectangle. Gtk provides mechanisms for doing this sort of thing appropriately. Take a look at hbox and vbox. These are layout mechanisms. Once you've placed widgets within a layout, they'll stay there, even if the layout is resized. -- Guy Rouillier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list