Accessing widgets
Prev | Chapter 19. Glade and libglademm | Next

## Accessing widgets

To access a widget, for instance to `show()` a dialog, use the `get_widget()` method, providing the widget's name. This name should be specified in the Glade Properties window. If the widget could not be found, or is of the wrong type, then the pointer will be set to 0.

    Gtk::Dialog* pDialog = 0;
    refXml->get_widget("DialogBasic", pDialog);

Prev | Up | Next
Chapter 19. Glade and libglademm | Home | Example