Determines whether or not the icon is sized to fit within the button.

Version Introduced: 3.0.0

Usage

Set_Property(OLECtrlEntID, "OLE.IconSizeToFit", Boolean)

Values

[True | False]

'Default: False

Remarks

The IconSizeToFit property, when set to true, tells the control to resize the image to fit within the bounds of the button. This can be useful if you have images of varying sizes but you are using the SRP Button as toolbar buttons and wish all your buttons to be consistent in their appearance.

A few things to note. Images are stretched or shrunk to fit within the button, but aspect ration is not preserved. Furthermore, this property does not affect the IconList property.

Example

// Resize image to fit within the button bounds 
Set_Property(@Window:".OLE_BUTTON", "OLE.IconSizeToFit", 1)

See Also

Icon

  • No labels