ICON Property

 

Specifies the icon to use for a Window or for a STATUSITEM in a STATUSBAR Control

 

 

Description:

 

The ICON Property is available for use in a Window definition and as a Property of a STATUSITEM in a STATUSBAR Control;

 

When used as a Property in a Window Definition, the ICON Property specifies the file name of the icon to display on the title bar of the Window and on the Windows taskbar

 

When used as a Property in a STATUSBAR Definition, the ICON Property specifies the file name of the icon to display for any specified STATUSITEM that is displayed by the Control

 

Syntax:

 

    ICON <cIconName>

 

Valid For Use With:

 

This Property is assumed to be available for use with all Window types

 

This Property is assumed to be available for use with all STATUSBAR Items

 

Notes:

  1. This Property is available in a Window definition

  2. The original documentation for a Window definition (see link below) suggests that the value of this Property can be read after it has been defined. However, during testing the program filed to compile (build) due to a sytax error when THISWINDOW | <FormName>.ICON was tested. The program will compile but then crashes during testing when attempting to get the value using THISWINDOW | <FormName>.ICON.VALUE with an error stating "ICON of <FormName> Not defined".

  3. No testing has been conducted with regard to reading the value of this Property when it is used in a STATUSITEM

  4. The original version of the help file for this item can be viewed here.

Properties:

 

The following Property is available after the Window has been defined

 

ICON <cIconName> Character D Sets a file name representing an icon to display for the Window or STATUSBAR ... STATUSITEM

 

D - Properties of this type can be used when defining a Window

R - Properties of this type can only be accessed (read) after the Window has been defined

W - Properties of this type can be changed (write) after the Window has been defined

 

See GETPROPERTY and SETPROPERTY functions for further infomation on accessing or changing properties or use semi-OOP syntax