Page 1 of 1

Quickie - Changing Title bar text

Posted: Tue Aug 05, 2008 19:27
by sipickles
Hi,

Say I have a window, how do I get the title bar text to change?

I've tried doing CEGUI::Window::setText("NewTitle") but it doesn't update the title bar.

Do I have to commit the change somehow?

Thanks

Si

Posted: Tue Aug 05, 2008 20:06
by CrazyEddie
What kind of Window is it? If it's a FrameWindow then setText should do it - unless perhaps it's a custom FrameWindow subclass in which you override Window::onTextChanged and do not call the FrameWindow implementation (that forwards the changed text to the titlebar).

So, basically. If it's a FrameWindow it should already work, otherwise you need to utilise some mechanism to forward the changed text.

CE.