ICON Control

The ICON resource-definition statement creates an icon control. This control is an icon displayed in a dialog box.

The ICON control statement, which you can use only in a DIALOG statement, defines the icon-resource identifier, icon-control identifier, position, and attributes of a control.

Syntax

ICON text, id, x, y, [[width, height, style [[, extended-style]]]]
 

Parameters

text
Specifies the name of an icon (not a filename) defined elsewhere in the resource file.
width
This value is ignored and should be set to zero.
height
This value is ignored and should be set to zero.
style
Specifies the control style. This parameter is optional. The only value that can be specified is the SS_ICON style. This is the default style whether this parameter is specified or not.

For more information on the text, id, x, y, width, height, style, and extended-style parameters, see Common Control Parameters.

Example

This example creates an icon control whose icon identifier is 901 and whose name is myicon:

ICON "myicon" 901, 30, 30 
 

See Also

DIALOG, ICON