Re: FW: How to get size of VBox?



On Wed, 2009-08-19 at 11:21 +0300, sledge hammer wrote:
> Vbox derives from the Gtk::Widget class. So all you have to do is
> something like this:
> 
> Gtk::VBox vbox;
> vbox.get_height();
> vbox.get_width();

Also, by connecting to the Gtk::Widget::signal_size_allocate() signal,
The Gtk::Allocation parameter of the handler should contain the size of
the widget when the size is actually alloted to the widget.


-- 
José Alburquerque



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