IconSizeToFit Property
Determines whether or not the icon is sized to fit within the button.
Version Introduced: 3.0.0
Definition
Property "OLE.IconSizeToFit" as Boolean
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.
note
Images are stretched or shrunk to fit within the button, but aspect ratio is not preserved.
caution
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)