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

Author Topic: RenderWindow.SetCaption(string aCaption)  (Read 2903 times)

0 Members and 1 Guest are viewing this topic.

NinjaFighter

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
    • http://www.sebagames.wordpress.com
RenderWindow.SetCaption(string aCaption)
« on: April 10, 2011, 06:00:54 am »
RenderWindow.SetCaption(string aCaption)

It will be good, because the window caption cannot be change on the fly... but otherwise it's possible to change the icon for example, via RenderWindow.SetIcon... In some games, the window caption is a good place to show fps, or in some cases the game's score... don't you think?

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
RenderWindow.SetCaption(string aCaption)
« Reply #1 on: April 10, 2011, 08:28:30 am »
Code: [Select]
void sf::Window::SetTitle ( const std::string & title )     :wink:

http://www.sfml-dev.org/documentation/2.0/classsf_1_1Window.htm#a20f26c5409bc8fc45f5ab7b1564aa195
SFML / OS X developer

NinjaFighter

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
    • http://www.sebagames.wordpress.com
RenderWindow.SetCaption(string aCaption)
« Reply #2 on: April 10, 2011, 08:49:23 am »
Whoops! Thank You but I'm using the dotNet SFML2 version and looks like doesn't have this method =S... what a pity! =(...
Anyway, it's only a suggestion... fortunately, this feature isn't a crucial one.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
RenderWindow.SetCaption(string aCaption)
« Reply #3 on: April 10, 2011, 09:49:35 am »
Oops, you're right I forgot to add this function to the bindings.

It's fixed now.
Laurent Gomila - SFML developer

NinjaFighter

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
    • http://www.sebagames.wordpress.com
RenderWindow.SetCaption(string aCaption)
« Reply #4 on: April 10, 2011, 09:58:41 am »
Great! Thanks! :)

 

anything