Page 1 of 1

Why is IGUIStaticText static?

Posted: Tue May 26, 2009 7:46 am
by kkrizka
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 IGUIStaticText?). I took a quick look over the code, and I do not see any reason why there can't be a public setText() function.

Posted: Tue May 26, 2009 7:52 am
by Nox
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 ;) .

Posted: Tue May 26, 2009 7:52 am
by Yoran
Read the API, there IS a setText() method.

Posted: Tue May 26, 2009 8:18 am
by kkrizka
Ah, it didn't occur to me that any IGUIElement could have some text. Thank you for pointing it out. :)