Thread: SDL title

  1. #1
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,472

    SDL title

    Could anyone please advise if it's possible to run my SDL program without the default title 'SDL_App' in the top left as the 'Messagebox' title, can i change this? I am only using the SDL project default code to set up my screen and it does not seem editable there, in a library i suppose.

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    SDL_WM_SetCaption()

    The first parameter is the text in the title bar, the second parameter is the text when the window is minimized. There may only be a difference on certain Linux systems; I'd just pass the same string to both.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  3. #3
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,472
    nice one, thanks, i was just rooting through the header files, sure i would have found it ...eventually...!

    thanks!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. SDL project setup
    By rogster001 in forum C Programming
    Replies: 22
    Last Post: 08-28-2009, 08:05 AM
  2. Extract Title from plain text file
    By Todd88 in forum C++ Programming
    Replies: 10
    Last Post: 11-21-2008, 09:47 AM
  3. SDL questions
    By Cpro in forum C++ Programming
    Replies: 1
    Last Post: 08-09-2008, 12:26 PM
  4. Program Crashing
    By Pressure in forum C Programming
    Replies: 3
    Last Post: 04-18-2005, 10:28 PM
  5. SDL and Windows
    By nickname_changed in forum Windows Programming
    Replies: 14
    Last Post: 10-24-2003, 12:19 AM