[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
The base class for windowed controls which paint themselves.
Source position: controls.pp line 2307
type TCustomControl = class(TWinControl) end; |
||
protected |
||
class procedure WSRegisterClass; override; |
|
Registers this component class with the current WidgetSet. |
procedure WMPaint(); message; |
|
Event handler for paint messages. |
procedure DestroyWnd; override; |
|
Destroys the interface object (widget). |
procedure PaintWindow(); override; |
|
Paints an clipped part (child control) of the DC. |
procedure FontChanged(); override; |
|
Handles changes of the Font property. |
procedure SetColor(); override; |
||
procedure Paint; virtual; |
|
Override this method in your derived class with your own paint handler. |
public |
||
constructor Create(); override; |
||
destructor Destroy; override; |
||
|
The drawing surface for the control, see TCanvas for details. |
|
property BorderStyle: TBorderStyle; |
|
Allows to show a border (line) around the control, |
property OnPaint: TNotifyEvent; [rw] |
|
Supply your own OnPaint handler for painting the control. |
|
The base class for windowed controls which paint themselves. |
|
| | ||
|
The base class for controls which can contain other (child) controls. |
|
| | ||
|
The base class for visible controls. |
|
| | ||
|
The base class for LCL components associated with widgets. |
|
| | ||
TComponent |
||
? | ||
TObject |
In contrast to TGraphicControl, a TCustomControl can accept keyboard input (get the Focus) and can have child controls.
Override the Paint method or supply your own OnPaint handler, to do the actual drawing of the control.
|
The base class for controls which can contain other (child) controls. |
|
|
TGraphicControl is the base class for all lightweight controls. |
lazarus-ccr.sourceforge.net |