How to set name of window?

Linux specific forum
User avatar
Brujah
Enthusiast
Enthusiast
Posts: 237
Joined: Mon Nov 03, 2003 7:45 pm
Location: Germany
Contact:

How to set name of window?

Post by Brujah »

The window for my game is unnamed.
How do change it?

I use openwindowedscreen to open it.
There seems not to be a parameter to set the name.
DarkDragon
Addict
Addict
Posts: 2347
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: How to set name of window?

Post by DarkDragon »

Brujah wrote:The window for my game is unnamed.
How do change it?

I use openwindowedscreen to open it.
There seems not to be a parameter to set the name.
Before OpenWindowedScreen you have to open a window:
OpenWindow(ID, x, y, width, height, flags, Title$)

The Title is the "name" of your window.
bye,
Daniel
User avatar
Brujah
Enthusiast
Enthusiast
Posts: 237
Joined: Mon Nov 03, 2003 7:45 pm
Location: Germany
Contact:

Post by Brujah »

This is not working on my machine. I have no gnome installed.
So I fear it will not work on a lot a machines.

Like my program is right now it is working everywhere...

But he says unnamed as title. I thought maybe there is another way to change that.
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

You can try to use the SDL command: SDL_WM_SetCaption_("Test", "")
Post Reply