Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Project Icon Help
Message
 
To
12/11/2002 11:07:39
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00721645
Message ID:
00721748
Views:
8
This message has been marked as a message which has helped to the initial question of the thread.
>I've been getting some really screwy behaviour from my project Icon.
>
>Rather than try to explain and hash out all of that, I was wondering if someone could give me a refresher on creating a project Icon.
>
>I have the old Image Edit program, Should I be using that?
>
>I need an icon that will appear on my desktop and in the add/remove programs of the control panel.
>
>I am using Installshield express (full version) & VFP 7
>
>I know I will be needing one file with 2 images inside it.
>How do I go about creating that and what are the sizes?
>
>I also downloaded the Iconmaker from here UT and tried that. IT created a 32x32 icon fine, but the image edit program determeined that the small icon was of an unknown format and wouldnt display it. It didnt display in my add/remove programs either.
>
>Thanks, steve

Steve,

You can use ImagEdit to shrink the icon. However, as far as I know, I believe it only works with 16 color icons.

Since I wrote IconMaker I would guess that the 32x32 icon was 16 colors. In testing this seems to be the case. Now there is a problem, which I believe I solved with the 16x16 icon 16 color icons. The call that creates the file on the disk is simply one to the SAVEPICTURE() function. I found that there's a bug in the Windows API routines (at least through W2K). The VFP function maps to a function called OleSavePictureFile() in OLEAUT32.DLL. What was happening was that there were 128 unnecessary bytes being inserted. There's a routine (FixSmallIcon, I think) that removes these to produce a valid file. I believe that I coded defensively here to remove these only in the event they were present. However, the logic involved may have been insufficient if the icon had more than 16 colors.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform