set the icon of <button> to <designator> Applies to buttons
The icon property is the ID number of an Icon resource. It determines which icon is used for a button.
Normally when you create a button, you also select its icon; however, it is also possible to change this icon afterward using a script.
To change the icon property of a button, use the set command. You can determine a button's icon property by referring to the Icon resource by name, if one exists, or by number. If a button does not have an icon, its icon property is 0.
You can change the icon property of a button by clicking on the Icon button in a button's Info dialog box. A dialog box that displays the available icons appears. When the user clicks on an icon to select it, the icon's ID appears in the upper left corner of the dialog box.
If you use the put command with the icon property, you will retrieve the number of the icon, not the name. You cannot retrieve an icon name.
This text has been mechanically extracted from the Oracle Media Objects 18.104.22.168 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.