Re: GTK+ Draw a Rectangle over other widgets?



Because some Gtk+ widgets use their own X11 windows while others
render themselves into a parent widget's X11 window, this may be a
harder job than you think. The most consistent solution might be to
allocate another X11 window (perhaps in pop-up mode, so suppress
window decorations), manually position it to occupy the area of the
rectangle you wish to draw, then draw the rectangle in this new
window.

There are a couple of mechanisms you might use to get this second X11
window: a GtkWindow in GTK_WINDOW_POPUP mode, or a dedicated GdkWindow
[probably allocated during a custom realize() method] belonging to
your container, which is rendered as the last step of an
"expose-event" handler executing in run-last position.

On 8/19/06, Wolfman <murat sari team-bytestorm com> 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..
--
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




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