[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Specifies the non-rectangular shape of the widget.
Source position: controls.pp line 2449
public procedure TWinControl.SetShape( |
AShape: TBitmap |
); overload; |
AShape: TRegion |
); overload; |
AShape |
|
Shape for the control; TBitmap or TRegion in overloaded methods. |
AShape |
|
Shape for the control; TBitmap or TRegion in overloaded methods. |
SetShape is an overloaded procedure used to set the shape for the control to the non-rectangular value in AShape. The overloaded methods allow AShape to be either a TBitmap or a TRegion value.
When TBitmap is used, the widgetset class calls its SetShape method to apply the TBitmap handle to the handle for the widget. No actions are performed in the method when a handle has not been allocated for the widgetset class.
When TRegion is used, SetWindowRgn in the LCL interface is called to apply the region in AShape to the handle for the control.
Version 3.2 | Generated 2024-02-25 | Home |