Home | Web Design | Programming | Fairlight CMI | Soap Box | Downloads | Links | Biography | About... | Site Map |
Getting the Right Icon |
CA-Visual Objects | CA-Clipper |
BACK TO CA-VISUAL OBJECTS |
CA-Visual Objects provides an easy way to set the icon for an application, but sometimes the wrong icon is displayed in Windows Explorer. What's going on? The problem is that CA-VO displays the icons in order of creation, while Explorer displays them in alphabetical order. Specifically, CA-VO sorts on the creation date of the icon resource. When you click on the Icon... button in the Application Options dialog, the IDE finds all the icon resources in the repository and displays them, like this: |
||
|
In this test, I first created the yellow icon called Once the executable was built, I made a shortcut to it on the Windows Desktop and clicked on the Change Icon... button on the Shortcut tab of the Windows Properties dialog. This is what appeared: |
||
|
You can see that the icons in the EXE are in a different order, in fact
listed alphabetically by The first icon resource in the program should be the default one -- the one that best represents your application -- because it will show up in Explorer. |
||
|
The solution to this problem is to create a "dummy" My test application contained the following two
Since
Note that I didn't need to copy the This problem comes up in the first place because you naturally create the application icon first and then give it the same name as the application itself. As far as CA-VO is concerned, this is fine because the first icon that is created will appear first in the list, but the icon name may not be the first alphabetically. Now you know what to do about it! |
Home | Web Design | Programming | Fairlight CMI | Soap Box | Downloads | Links | Biography | About... | Site Map |
Send comments about this site to Greg at
gregh@ghservices.com All pages copyright © 1996-1999 GH Services Created 1999/01/01 Last updated 1999/09/30 All trademarks contained herein are the property of their respective owners |