SftButton/DLL 3.0 - Button Control
SftTree/DLL 8.0 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 4.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 8.0 - Tree Control
SftButton/DLL 3.0 - Button Control
SftTree/DLL 8.0 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 4.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 8.0 - Tree Control
SftTree/NET 2.0 - Tree Control
Defines whether the images supplied to the control are scaled to the current DPI.
Get
| VB.NET | Mode = object.ImageScaling As SftButtonScalingConstants |
| VB | Mode = object.ImageScaling As SftButtonScalingConstants |
| C#.NET | SftButtonScalingConstants Mode = object.ImageScaling; |
| VC++ | enum SftButtonScalingConstants Mode = object->ImageScaling; enum SftButtonScalingConstants Mode = object->GetImageScaling(); |
| C | HRESULT object->get_ImageScaling(enum SftButtonScalingConstants* Mode); |
Put
| VB.NET | object.ImageScaling = Mode As SftButtonScalingConstants |
| VB | object.ImageScaling = Mode As SftButtonScalingConstants |
| C#.NET | SftButtonScalingConstants object.ImageScaling = Mode; |
| VC++ | enum SftButtonScalingConstants object->ImageScaling = Mode; void object->PutImageScaling(enum SftButtonScalingConstants Mode); |
| C | HRESULT object->put_ImageScaling(enum SftButtonScalingConstants Mode); |
object
Mode
Defines whether the images supplied to the control are scaled to the current DPI.
| Name | Value | Description |
|---|---|---|
| scalingSftButtonAsIs | 0 | Draw every image at its native pixel size. |
| scalingSftButtonStretch | 1 | Scale every image by the current DPI (the default). |
The ImageScaling property defines whether the images supplied to the control - the Image1 and Image2 families, and the background images, including their hover, pressed and disabled variants - are scaled by the current DPI when they are drawn.
See Also SftButton Object | Object Hierarchy | Per-Monitor DPI and Scaling
