SFML community forums
Bindings - other languages => DotNet => Topic started by: ptrxyz on May 17, 2009, 09:02:18 pm
-
Is there a way to change the renderwindow's title after it got created?
Something like this would be nice:
Dim vMode As New VideoMode(640, 480, 32)
App = New RenderWindow(vMode, "TEST!")
App.SetWindowTitle (....) 'This would be nice to have
As far as i am informed the only way to set the window's title is to set it in the constructor... =(
-
This is currently not implemented.
-
Yup, then maybe consider this as a feature request...
-
I do ;)
You're not the first one to ask for this feature.
-
I just did a quick lookup on changing title, it's actually really simple. In win32 you use SetWindowText and you can change the window text. I'd say for you (Laurent) it would take about five minutes tops. I haven't checked the mac or linux functions but I assume it would be as simple.
I know this is a minor feature and that you have more important features to work on, so why don't you delegate some of these minor tasks to other people (there are many qualified people on these forums). I know that you do like to keep control of the code, but some of these small changes someone else could do. If something does go wrong it wouldn't break too badly.
-
I know it takes only five minutes ;)
This is not a matter of availability, I have enough free time to work on such features. I didn't add it before because I was not sure whether it would really be useful or not.
-
Oh well in that case I would say it is a very useful function to add. Many applications have changing titles. Browsers are a good example of this. In the gaming realm maybe the programmer would like to show the score on the window. Or post statuses on the title. There are many applications for this and simply providing it wouldn't hurt.
-
...Level editors and other tools, that show a current document title on the main window caption should be added to the list.