Distributed .ICO or File Needs Multiple Images

Last reviewed: April 30, 1996
Article ID: Q130300
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, version 3.0

SUMMARY

If you plan on distributing icon (.ICO) files with an application, be aware that you must allow for icons that are properly formatted for multiple display types and resolutions. This is easy to accomplish through the Imagedit resource editor shipped with Visual FoxPro.

Every .ICO or .CUR file you distribute should contain images for both VGA color and monochrome, in a 32 x 32 pixels size.

MORE INFORMATION

An .ICO or .CUR (cursor) file can contain multiple images. At run-time, the operating system determines which image is appropriate for the display type installed on the current system, and automatically selects the proper image from the file.

To create a new icon or cursor file:

  1. Start Imagedit from the Visual FoxPro program group icon or by typing Run /n Imagedit in the Command window. A target device dialog box appears.

  2. Select a target device, and click OK.

  3. Create an icon or cursor by using the drawing tools.

  4. Use the dotted box icon to draw a marquee around the image created in step 3. Choose Copy from the Edit menu.

  5. From the Edit menu, choose New Image, and choose a target device from the dialog box.

  6. From the Edit menu, choose Paste to copy the image from the first device into the new target device.

  7. Save the file. The icon or cursor is now ready to be used in your Visual FoxPro application.


Additional reference words: 3.00 VFoxWin
KBCategory: kbtool
KBSubcategory: FxtoolDk


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 30, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.