Page 1 of 1

Possible to access a gui control from IGUIEnvironment?

Posted: Mon Oct 19, 2009 5:32 am
by Weng
I added an irrlicht IGUIEditBox via the IGUIEnvironment pointer using the addEditBox method.

The addEditBox method returns a pointer to the IGUIEditBox for access. However, is it possible to access the edit box using the IGUIEnvironment pointer instead (like via the gui control's id) ?



:?:

Posted: Mon Oct 19, 2009 7:39 am
by vitek
The IGUIEnvironment interface exposes the root gui element with the function getRootElement(). The 09.MeshViewer example also covers how to do this.

Either of these might be good places to look.

Travis