SDL_WM_SetCaption()

Which is defined as:
extern void SDL_WM_SetCaption(const char *title, const char *icon);

What is char *icon? Is that supposed to be the path to an icon file?
What
format should the icon file be? BMP?

Cheers,

Jeff–
“Message sent by @Jeff_Schmidt

Which is defined as:
extern void SDL_WM_SetCaption(const char *title, const char *icon);

Some windowing systems have a separate title for the window and the icon
of the window.

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Sam Lantinga wrote:

Which is defined as:
extern void SDL_WM_SetCaption(const char *title, const char *icon);

Some windowing systems have a separate title for the window and the icon
of the window.

    -Sam Lantinga                           (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software

“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

So what your saying is that char *icon is the string that will be displayed
with the icon (not the icon itself), if the system supports having separate
title and icon. Ok. Thanks =)

Jeff–
“Message sent by @Jeff_Schmidt

So what your saying is that char *icon is the string that will be displayed
with the icon (not the icon itself), if the system supports having separate
title and icon. Ok. Thanks =)

That brings up a question. How does one set the icon for an app?

Also, is there any way to, I guess, compile icon data (ie, what the
".exe" will look like when seen from a file- or program-manager) into
the application binary?

For example, when I go to build Mad Bomber, I just wanna be able to type
"make win32" from under Linux and have all the magic done for me. :wink:
Right now, almost all the magic is done for me. I just end up with a
"madbomber.exe" file with a square box for an icon. <boorrring! :wink: >

-bill!

So what your saying is that char *icon is the string that will be displayed
with the icon (not the icon itself), if the system supports having separate
title and icon. Ok. Thanks =)

That brings up a question. How does one set the icon for an app?

Also, is there any way to, I guess, compile icon data (ie, what the
“.exe” will look like when seen from a file- or program-manager) into
the application binary?

For example, when I go to build Mad Bomber, I just wanna be able to type
“make win32” from under Linux and have all the magic done for me. :wink:
Right now, almost all the magic is done for me. I just end up with a
“madbomber.exe” file with a square box for an icon. <boorrring! :wink: >

Maelstrom does this:
http://www.devolution.com/~slouken/Maelstrom/

See ya!
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Maelstrom does this:
http://www.devolution.com/~slouken/Maelstrom/

Blah! C++! <:^P

(Thanks :slight_smile: )

-bill!

Maelstrom does this:
http://www.devolution.com/~slouken/Maelstrom/

Actually, what I see right off is code to set the application’s icon while
it’s running. (Using SDL_WM_SetIcon()).

I’ve added this code, and tested it under X and it works. Cool!

But, if you can tell me how to embed icon information within the app (ie,
where the icon appears in a file- or program-manager, before the app has
even been started), that’d be cool, too. :wink:

I’m sniffing around Makefile right now and don’t see anything obvious.
(Then again, I’m not a make expert, and this Makefile is kinda beyond me :slight_smile: )

-bill!

But, if you can tell me how to embed icon information within the app (ie,
where the icon appears in a file- or program-manager, before the app has
even been started), that’d be cool, too. :wink:

Grab the DirectX sources from:
http://www.devolution.com/~slouken/SDL/Xmingw32/

Unpack it, and look in the icon subdirectory. :slight_smile:

See ya!
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Also, is there any way to, I guess, compile icon data (ie, what the
".exe" will look like when seen from a file- or program-manager) into
the application binary?

Although the ELF executable format has the ability to store an icon in
the executable itself I have yet to see any system take advantage of that
fact.

Paul Braman
@Paul_BramanOn Wed, 26 Jan 2000, William Kendrick wrote:

Paul Braman wrote:

Also, is there any way to, I guess, compile icon data (ie, what the
".exe" will look like when seen from a file- or program-manager) into
the application binary?

Although the ELF executable format has the ability to store an icon in
the executable itself I have yet to see any system take advantage of that
fact.

Yes, but on Windows, this is common fare. I didn’t even knew that ELF
could do the same! Where is it stored, do you have any information on
this?

I guess it makes sense, since I think that after the regular DOS MZ
header, Windows uses COFF as its binary format (or is that the “PE
format”?), is that possible? COFF is a Unix binary format, similar to
ELF, right?–
Pierre Phaneuf
Ludus Design, http://ludusdesign.com/

Yes, but on Windows, this is common fare. I didn’t even knew that ELF
could do the same! Where is it stored, do you have any information on
this?

When the ELF format was first introduced there was some information made
available about the advantages of this over that, blah, blah, blah.

One of the specific things the information addressed was storing icons in
the executable. It was made clear that the ELF format did not prevent
that application. Still, no compiler I have ever seen has given the user
the ability to compile in icon data.

I keep wondering if someone will fire up this discussion again and get
some sort of standard going for it. [shrug]

Paul Braman
@Paul_BramanOn Thu, 27 Jan 2000, Pierre Phaneuf wrote:

What’s the aim for the icon parameter in SDL_WM_SetCaption()?–
Marco Iannaccone @Marco_Iannaccone
ICQ: 18748121 MetalCoder

"What is real? How do you define real? If you’re talking about your
senses, what you feel, taste, smell, or see, then all you’re talking about
are electrical signals interpreted by your brain."
Morpheus - The Matrix

What’s the aim for the icon parameter in SDL_WM_SetCaption()?

It’s the short name in the icon list, if the window manager supports it.

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

It’s the short name in the icon list, if the window manager supports it.
Icon list?
Do Windows and KDE2 support it?–
Marco Iannaccone @Marco_Iannaccone
ICQ: 18748121 MetalCoder

"What is real? How do you define real? If you’re talking about your
senses, what you feel, taste, smell, or see, then all you’re talking about
are electrical signals interpreted by your brain."
Morpheus - The Matrix

It’s the short name in the icon list, if the window manager supports it.
Icon list?
Do Windows and KDE2 support it?

Yes.
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Do Windows and KDE2 support it?

Yes.
And what sould I pass tehre, for example?–
Marco Iannaccone @Marco_Iannaccone
ICQ: 18748121 MetalCoder

"What is real? How do you define real? If you’re talking about your
senses, what you feel, taste, smell, or see, then all you’re talking about
are electrical signals interpreted by your brain."
Morpheus - The Matrix

Do Windows and KDE2 support it?

Yes.
And what sould I pass tehre, for example?

For example:

SDL_WM_SetCaption(“Tribes II”, “tribes2”);

The first string is used in the title bar and the second string is used
in the docking panel or underneath the icon, depending on your window
manager.

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software