Quickie - Changing Title bar text

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

User avatar
sipickles
Not too shy to talk
Not too shy to talk
Posts: 37
Joined: Fri Feb 24, 2006 19:41
Location: Enfield, UK

Quickie - Changing Title bar text

Postby sipickles » Tue Aug 05, 2008 19:27

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

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Tue Aug 05, 2008 20:06

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.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 4 guests