Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

PosNameTypeDescriptionDefault
<1>ImageFormatted StringThe full path and file name of the image to be used as the icon""
<2>Frame CountIntegerThe number of frames in the image1

...

The Icon property is the image to appear on the button. Refer to the Image documentation for supported file types and image location options.

...

When you supply just one image, the button applies special effects to the image automatically depending upon the button's state. If you wish to have more control over the images used for each state, you may supply muliple frames. For more information, see the topic on Icon States.

Example

 

Code Block
// Load the icon from a dll 
Set_Property(@Window:".OLE_BUTTON", "OLE.Icon", "images.dll#APP_ICON") 

 // Load the icon from a dll dividing the image into 3 frames 
Set_Property(@Window:".OLE_BUTTON", "OLE.Icon", "images.dll#APP_ICON":@FM:3) 

 // Load the icon from a bitmap file and make magenta transparent 
Set_Property(@Window:".OLE_BUTTON", "OLE.Icon", "BMPS\MyIcon.bmp") 
Set_Property(@Window:".OLE_BUTTON", "OLE.TransparentColor", RGB(255, 0, 255))

See Also

TransparentColorCaptionIconList