SDL_WM_SetIcon not function in win32

SDL_WM_SetIcon not function

SDL_WM_SetIcon(SDL_LoadBMP(“base.bmp”), NULL);

this code dont show the icon … (i test the surface returned to SDL_LoadBMP
but is good and not null)

in SDL_WM_SetCaption the icon field what makes?

see ya

Has the image a palette? I couldn’t make icons work until I found this
requirement deep in the documentation or the code itself, I don’t
remember.

Lic. Gabriel Gambetta
ARTech - GeneXus Development Team
ggambett at artech.com.uy> ----- Original Message -----

From: Goul_duKat [mailto:goul_dukat@despammed.com]
Sent: Martes, 16 de Septiembre de 2003 12:36 p.m.
To: sdl at libsdl.org
Subject: [SDL] SDL_WM_SetIcon not function in win32

SDL_WM_SetIcon not function

SDL_WM_SetIcon(SDL_LoadBMP(“base.bmp”), NULL);

this code dont show the icon … (i test the surface returned to
SDL_LoadBMP but is good and not null)

in SDL_WM_SetCaption the icon field what makes?

see ya


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

This is so that you can give the iconified version of a program a different
title than what’s in the window bar (when the program is not iconified).

e.g., you could say normally: "Super Game, © Bill Kendrick - Level 32!"
and when it’s iconified, just “Super Game”

I’m not sure if this is even applicable on Windows.

-bill!On Tue, Sep 16, 2003 at 05:36:19PM +0200, Goul_duKat wrote:

in SDL_WM_SetCaption the icon field what makes?


bill at newbreedsoftware.com Got kids? Get Tux Paint!
http://newbreedsoftware.com/bill/ http://newbreedsoftware.com/tuxpaint/

“Bill Kendrick” ha scritto nel messaggio
news:20030916091541.B4088 at sonic.net

in SDL_WM_SetCaption the icon field what makes?

This is so that you can give the iconified version of a program a
different
title than what’s in the window bar (when the program is not iconified).

e.g., you could say normally: "Super Game, © Bill Kendrick - Level 32!"
and when it’s iconified, just “Super Game”

I’m not sure if this is even applicable on Windows.

in windows didn’t function :-\ … i set title to “try this !!!” and icon
"try another text" and the only text see is the title only.

tnx for the answer.> On Tue, Sep 16, 2003 at 05:36:19PM +0200, Goul_duKat wrote:

“Gabriel Gambetta” ha scritto nel messaggio
news:16D5B79326496845A0D550C9D34B22D170FDAC at mensajero.artech.local…

Has the image a palette? I couldn’t make icons work until I found this
requirement deep in the documentation or the code itself, I don’t
remember.

i try whit all type of bmp 8-16-24 whit and whitout palette, and whit and
whitout compression … the same result = never is shown

See ya

Are you making sure the image is 32x32 ?

 SDL_WM_SetIcon(SDL_LoadBMP("dreamsicon.bmp"), NULL);

works for me…
dreamsicon.bmp is 32x32, 24bit, [windows/RGB encoding (not that this should
affect SDL_LoadBMP)]

Cheers,
John

Goul_duKat wrote:> “Gabriel Gambetta” ha scritto nel messaggio

news:16D5B79326496845A0D550C9D34B22D170FDAC at mensajero.artech.local…

Has the image a palette? I couldn’t make icons work until I found this
requirement deep in the documentation or the code itself, I don’t
remember.

i try whit all type of bmp 8-16-24 whit and whitout palette, and whit and
whitout compression … the same result = never is shown

See ya


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

“John Drinkwater” ha scritto nel messaggio
news:3F6782BD.5040709 at nextraweb.com

Are you making sure the image is 32x32 ?

 SDL_WM_SetIcon(SDL_LoadBMP("dreamsicon.bmp"), NULL);

works for me…
dreamsicon.bmp is 32x32, 24bit, [windows/RGB encoding (not that this
should
affect SDL_LoadBMP)]

it’s working … sorry but i think the function change the icon on top left
of window but only icon change is in the task bars :-/

sorry for the thread …

(make sdl under windows to change also the top left icon ? the standard icon
is anonimous :-/)

God bless all