Versions Compared

Key

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

...

PosNameTypeDescriptionDefault
<1>Image PathFormatted StringThe full path and file name of the image""
<2>Transparent ColorFormatted StringThe color within the bitmap not to be drawn. Use "Auto" to designate the top-left most pixel colorAuto

...

For details regarding supported image types and how you can load images, see the Image type documentation.

Example

Code Block
// Subclass my editline control and add an option button with a custom image 
CtrlId = @Window:".EDITLINE" 
Handle = Get_Property(CtrlId, "HANDLE") 
rv = Send_Message(@Window:".OLE_SUBCLASS", "OLE.Subclass", Handle, CtrlId) 
Convert "." to ";" in CtrlId 
Set_Property(@Window:".OLE_SUBCLASS", "OLE.OptionButton[":CtrlId:"]", 1) 
Set_Property(@Window:".OLE_SUBCLASS", "OLE.OptionImage[":CtrlId:"]", "C:\MyOptionImage.png")

See Also

OptionButtonOptionOnFocus