Changing Program Icons in a SDL - Application

Hi there!

I wonder, if it’s possible to change the program icon of a SDL-Application?
Any ideas?

Thanks in advance!

Greets,
Philippe–
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ Min. surfen!

SDL_WM_SetCaption() and SDL_WM_SetIcon()> Hi there!

I wonder, if it’s possible to change the program icon of a
SDL-Application?
Any ideas?

Thanks in advance!

Greets,
Philippe


+++ GMX - Mail, Messaging & more http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ Min. surfen!


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Hello,

To Get the title of the Window you use:

SDL_WM_GetCaption

To Set the title of the Window you use:

SDL_WM_SetCaption

//Getting
char *title;
char *icontitle;
SDL_WM_GetCaption(title, icontitel);
std::cout << “The title is:” << title << std::endl;
std::cout << “The icon title is:” << icontitle << std::endl;

To set window title you can to it this way:

//Setting
const char *window_title = ?windowtitle?;
const char *icon_title = ?icontitle?;
SDL_WM_SetCaption(window_title, icon_title);

To set an Icon you have to use SDL_WM_SetIcon;
SDL_WM_SetIcon(SDL_LoadBMP(“icon.bmp”), NULL);

SDL_LoadBMP loads a bitmap and puts as surface into the icon-field.

Jan Kopia---------------------

Software-Developer

----- Original Message -----
From: ultrakrazz@gmx.net ()
To:
Sent: Thursday, October 17, 2002 12:51 PM
Subject: [SDL] changing Program Icons in a SDL - Application

Hi there!

I wonder, if it’s possible to change the program icon of a
SDL-Application?
Any ideas?

Thanks in advance!

Greets,
Philippe


+++ GMX - Mail, Messaging & more http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ Min. surfen!


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Hmm… I guess this is ambiguous, but these functions affect the icon
(and caption) of the RUNNING program. In windows, many files (including
executables) have a file-icon that is displayed by thier file-system
browser based on the file’s data . If memory serves, this icon needs to
be embedded in the resource file somehow.

-LorenOn Thu, 2002-10-17 at 10:16, AIM3 BRADLEY wrote:

SDL_WM_SetCaption() and SDL_WM_SetIcon()