Icons in Picture Controls

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Icons in Picture Controls

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:40 pm

by hml >> Wed, 6 Nov 2002 10:21:27 GMT

I have an icon file (*.ico) that contains a 32 by 32 and a 16 by 16 icon. I want to display the 32 by 32 in a picture control but Jade always uses the 16 by 16. Does anyone know how to get Jade to display the 32 by 32 icon without creating a new picture file that just contains the 32 by 32 icon?

Torrie

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Icons in Picture Controls

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:40 pm

by allistar >> Wed, 6 Nov 2002 20:59:57 GMT

The only thing I can think of it to not use a .ico file. Make a .png
file instead (although there is probably a good reason why you are
using .ico files).

The only other way is to work out the format of a .ico file and read
it as a binary file - you should be able to extract out the 32x32
portion of it. Are there not any windows API calls for doing that?

Allistar.

------------------------------------------------------------------
Allistar Melville
Software Developer
Auckland, NEW ZEALAND

Greentree International,
Developer of Greentree Financial Software. ------------------------------------------------------------------


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 19 guests