Versions Compared

Key

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

...

The IconList property adds unique functionality to the SRP Button Control. The Icon property is useful for adding a single centered icon, which meets most basic needs. The IconList property allows you to place any number of icons aligned as you see fit.

...

The Frame Count subvalue can be used to divide the image into equal frames, which are used according to the button's state. For complete details on how frames are used in the SRP Button Control, see the Icon States topic.

The Transparent Color subvalue is used to determine which color of the bitmap is not to be rendered. This applies to any image type that does not have transparency built in. (GIF and PNG files have transparency built in, BMP files do not.) You can use NONE to force all pixels to be rendered or AUTO (the default) to hide all pixels that match the top left pixel. Lastly, you can specify the exact color to be transparent using the RGB function.

...

For more information and ideas regarding caption and icon lists, see the CaptionList and IconList topic.

Example

Code Block
 // Set a button with a different image in opposite corners 
IconList = "" 
IconList<1> = "Hello":@VM:"L":@VM:"T" 
IconList<2> = "World":@VM:"R":@VM:"B" 
Set_Property(@Window:".OLE_BUTTON", "OLE.CaptionList", IconList)

See Also

IconCaptionList