Vcl.Skia.TSkCustomWinControl.Paint
Delphi
procedure Paint; override; final;
C++
virtual void __fastcall Paint() _FINAL_ATTRIBUTE;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
class protected | Vcl.Skia.pas Vcl.Skia.hpp |
Vcl.Skia | TSkCustomWinControl |
Description
Renders the image of a custom control.
Vcl.Skia.TSkCustomWinControl.Paint inherits from Vcl.Controls.TCustomControl.Paint. All content below this line refers to Vcl.Controls.TCustomControl.Paint.
Renders the image of a custom control.
The Paint method for TCustomControl does nothing other than provide the interface for a method that responds to WM_PAINT messages. Paint is called by the PaintWindow method, after that method has supplied the Canvas with the handle to a device context. When creating a custom control, always override Paint to draw the image of the control.
Tip: To determine which portions of the control's canvas need to be repainted when Paint is called, use the ClipRect property of the canvas.