Page History
...
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)) |
...