Re: [gtkmm] lookup_widget in glademm



Silviu D Minut wrote:

In building GUIs with glade in C there was this lookup_widget() function
that did the obvious, defined in support.c. In glade-2 with glade-- there
is a window1_glade.hh which defines the main window of the application
(derived from Window). All the widgets contained in the main window
are pointers - only defined locally in the constructor, hence not visible
outside the constructor (e.g. in a callback). Is there a loolup_widget()
analog for glade-- ?
You should declare widgets as "public" in glade, then they will be
accessible by name without lookup_widget(). You can add new
(your own) methods and properties using produced by glade
classes as base classes and changing them by inheritance.
   Igor Gorbounov






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