Re: GTKmm Window Signal



Rok wrote:

Hello,

I have a problem when user resizes a window. How could I catch that
event and get the new width and height?

Thank you for the answer,
Rok

_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list


Connect to Gtk::Widget::signal_expose_event with a callback slot. In that callback slot use the Gtk::Widget::get_window method to get a pointer to the underlying Gdk::Window. Then use the Gdk::Window::get_geometry method can be used to obtain the width and height of the window.

Bob Caryl



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