Re: Icons

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Mon, 9 Aug 1999 17:29:47 -0500, Brent Hugh <bhugh at CCTR.UMKC.EDU> wrote:

>Hi all,
>
>Is there some (relatively easy) way to set or change the icon of a bound
>Euphoria file?  I mean the icon that is shown next to the file name in
>Explorer, and that shows up, for instance, on the taskbar when the program
>is running.
>
>Any advice or suggestions appreciated!
>
>--Brent

Brent,

I found this on the 'net this morning:

<<The answer to the question "how to bind a default icon to an .EXE file"
is that the system looks for an icon resource with the (magic) number 1, so
you have to use the following in your resource file.

ICON 1 PRELOAD MYAPP.ICO

It was pointed out that this will cause trouble if you define a constant
for the number 1 because it conflicts with DID_OK, which is defined by the
Toolkit. My experience has indicated that the first icon resource found in
the executable is used, but since the first icon resource in my application
are usually the lowest numbered also, this could instead by the criteria.
Given that you can't get much lower than 1 (0?), the behavior I have seen
would be consistent with what is described above.>>

I'm sure somebody smarter than me can figure out what to do with this...

Brian Jackson
bjackson at 2fargon.hypermart.net

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu