The option button's image.

Usage

Set_Property(OLECtrlEntID, "OLE.OptionImage[CtrlId]", Array)

Values

Array has the following structure:

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

Indices

IndexDescription
CtrlIdIdentifies a subclassed control

Remarks

Applies To: EDITLINE, EDITBOX

The OptionImage property replaces the default drop down arrow image to a custom one in an existing EDITLINE option button. Note that the look and feel of the button will change slightly when running Windows XP Themes in order to accomodate the new image.

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

Example

// 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

  • No labels