Re: How can I get the size of a container ???

Use the Gtk::Widget::get_window method (call it from your label) to get
a Glib::RefPtr<Gdk::Window>.  Then call the Gdk::Window::get_geometry
method to get the dimensions of your label.

for info on get_geometry.


Sergio Trinidad wrote:

> Hello,
> I have a label inside a vbox, and i need to know the height of the label
> or the vbox to change the size of the text to fill all available area when
> the size of the label changes.
> I do this with on_configure_event but it seems to only work with a window
> and not with a vbox. Any solution ?
> Thanks in advance
>gtkmm-list mailing list
>gtkmm-list gnome org

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