Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Change RenderWindow's Title after creation...  (Read 8014 times)

0 Members and 1 Guest are viewing this topic.

ptrxyz

  • Newbie
  • *
  • Posts: 32
    • View Profile
Change RenderWindow's Title after creation...
« 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:

Code: [Select]
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... =(

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Change RenderWindow's Title after creation...
« Reply #1 on: May 17, 2009, 09:09:19 pm »
This is currently not implemented.
Laurent Gomila - SFML developer

ptrxyz

  • Newbie
  • *
  • Posts: 32
    • View Profile
Change RenderWindow's Title after creation...
« Reply #2 on: May 17, 2009, 09:38:23 pm »
Yup, then maybe consider this as a feature request...

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Change RenderWindow's Title after creation...
« Reply #3 on: May 18, 2009, 08:22:38 am »
I do ;)
You're not the first one to ask for this feature.
Laurent Gomila - SFML developer

Astrof

  • Full Member
  • ***
  • Posts: 135
    • View Profile
Change RenderWindow's Title after creation...
« Reply #4 on: May 18, 2009, 04:57:40 pm »
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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Change RenderWindow's Title after creation...
« Reply #5 on: May 18, 2009, 06:48:02 pm »
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.
Laurent Gomila - SFML developer

Astrof

  • Full Member
  • ***
  • Posts: 135
    • View Profile
Change RenderWindow's Title after creation...
« Reply #6 on: May 18, 2009, 07:14:32 pm »
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.

dunce

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
Change RenderWindow's Title after creation...
« Reply #7 on: May 19, 2009, 09:03:39 am »
...Level editors and other tools, that show a current document title on the main window caption should be added to the list.

 

anything