For DataWindow controls and windows

Applies to

DataWindow controls and windows

Description

The Icon property specifies the icon to display when the DataWindow control or window is minimized. You can specify a stock icon or any icon file name.

Usage

In a painter

To specify an icon for minimization:

  1. Display the Icon tab page of the window's or control's Properties view.

  2. Specify an Icon Name by selecting a stock icon from the Stock Icons list box, or use the Browse button to select another icon (.ICO) file.

After you have selected an icon, the image is displayed on the Icon tab page.

In scripts

The Icon property takes a string containing the name of the icon file you want to display when the window or control is minimized. You can specify a stock icon or any icon file name.

This example sets the icon for a window to an icon file called arrow.ico:

w_1.Icon = 'c:\examples\arrow.ico'

This example sets the icon for a window to the stock icon Rectangle:

w_1.Icon = 'Rectangle!'