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.
kkrizka
Posts: 70 Joined: Sun Sep 30, 2007 3:10 am
Post
by kkrizka » Tue May 26, 2009 7:46 am
Hi there,
I'm wondering why the IGUIStaticText node does not allow changing of the text after it has been created (I assume that is why it is called IGUIStatic Text?). I took a quick look over the code, and I do not see any reason why there can't be a public setText() function.
Nox
Posts: 304 Joined: Wed Jan 14, 2009 6:23 pm
Post
by Nox » Tue May 26, 2009 7:52 am
Errr...you can change the text. Static means only the user cannot edit the text
. And the setText method is part of irr::gui::IGUIElement
.
Yoran
Site Admin
Posts: 96 Joined: Fri Oct 07, 2005 8:55 am
Location: The Netherlands
Contact:
Post
by Yoran » Tue May 26, 2009 7:52 am
Read the API, there IS a setText() method.
kkrizka
Posts: 70 Joined: Sun Sep 30, 2007 3:10 am
Post
by kkrizka » Tue May 26, 2009 8:18 am
Ah, it didn't occur to me that any IGUIElement could have some text. Thank you for pointing it out.