Change window title

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

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 http://www.ogre3d.org/forums/viewtopic. ... 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 http://bitbucket.org/emarcotte/ogre, 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
so0os
Bugbear
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 :)
http://www.sos.gd
Post Reply