Re: GTK+ Draw a Rectangle over other widgets?
- From: Guy Rouillier <guyr-ml1 burntmail com>
- To: gtk-app-devel-list gnome org
- Subject: Re: GTK+ Draw a Rectangle over other widgets?
- Date: Sun, 20 Aug 2006 21:41:43 -0400
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]