Page 1 of 1

Change window title

Posted: Tue Nov 09, 2010 1:31 am
by emarcotte
For a while I've been trying to figure out how to change the title of a window. The best I could find on info for changing the title of a window that ogre has set up was ... highlight=. Unfortunately it only really offered windows support... and I'm not particularly fond of having this cross-platform support stuff outside of OGRE (since it did all the hard work to abstract the window creation in the first place).

I tried hacking up a solution, but it only works on X11 and windows as those are the only environments I have laying around. Also, having never really done direct xlib or win32 api stuff before I can't even assert I'm using the "right" approach for changing the titles all I know is that "it works for me" ;)

Does anyone have a more robust solution? Maybe one that includes icons and more platform support?

Re: Change window title

Posted: Tue Nov 09, 2010 9:13 am
by so0os
RenderWindow::getCustomAttribute("WINDOW",...); is your friend, the rest is system dependend, you can do everything with it when you have the hwnd (even change it's shape into a rubber duck or whatever)