Change window title

What it says on the tin: a place to discuss proposed new features.
Post Reply
User avatar
Posts: 37
Joined: Thu Nov 20, 2008 9:05 pm
Location: Anywhere but here

Change window title

Post 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?

User avatar
Posts: 833
Joined: Thu Apr 15, 2010 7:42 am
Location: Poznan, Poland
x 33

Re: Change window title

Post 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)
Sos Sosowski :)

Post Reply