[SOLVED] How to access to a child widget?

Buckcherry

10-01-2009 14:51:15

How could I access to the child widget methods?.

Five_stars

10-01-2009 15:02:09

What do you mean under "access to the child widget methods"? Retrieving pointers to child widgets? Widget has method MyGUI::EnumeratorWidgetPtr getEnumerator(). See MyGUI::Enumenator (methods current(), next()).

P.S. Advice. Download doxygen(http://www.stack.nl/~dimitri/doxygen/) and generate documentation (as the Ogre API reference). It's easy way to find need methods!

Altren

10-01-2009 15:46:12

MyGUI::EnumeratorWidgetPtr child_widgets = widget->getEnumerator();
while (child_widgets.next()) {
child_widgets.current()->setCaption("I'm child widget!");
};

Buckcherry

12-01-2009 16:34:55

Thank you!.