SFML community forums
General => Feature requests => Topic started by: TULOA on August 13, 2011, 06:11:41 am
-
From the search I did and my knowledge on creating windows with SFML we cannot at this moment change the window title after creation.
My request would therefore be to allow us to set the window title.
-
Have you read the documentation (http://www.sfml-dev.org/documentation/2.0/classsf_1_1Window.php)? The window title can be changed with sf::Window::SetTitle() :)
-
Why does SetTitle take a std::string? What if you need Unicode characters / characters not part of the machine's current locale/codepage?
-
Why does SetTitle take a std::string?
Because Unicode titles are not implemented.
-
Fair enough.
-
And why they're not implemented?
-
Because I didn't do it ;)
-
So, could I do it? I'd like to be able to set an Unicode window title ;)
-
The problem is to choose a suitable Unicode string class. std::wstring? sf::String? Something else?
-
If the underlying OS supports it, why not sf::String? It provides the highest flexibility (and can be initialized with std::string and std::wstring). What do I overlook?
-
I see no problem with Unicode Titles either. It allows for easier internationalization and shouldn't take much effort on operating systems that support it.
-
If the underlying OS supports it, why not sf::String? It provides the highest flexibility (and can be initialized with std::string and std::wstring)
Yes, that should be the best solution.
I see no problem with Unicode Titles either
I didn't say there was a problem with them... it's just not implemented ;)
-
It's been two years. Is this ever going to happen? I decided to implement multilanguage support into my game today and was disappointed to discover that I can't put the translated name of the game in the title bar.
-
You can put sf::String as title for over half a year now.