Possible to access a gui control from IGUIEnvironment?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Weng
Posts: 97
Joined: Tue Oct 03, 2006 4:23 pm
Location: Singapore

Possible to access a gui control from IGUIEnvironment?

Post 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) ?



:?:
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post 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
Post Reply