TCustomControlBar.OnPaint property
Event handler signalled to perform default drawing in the inherited Paint method.
Declaration
property OnPaint: TNotifyEvent read FOnPaint write FOnPaint;Description
OnPaint is a
TNotifyEvent property with the event
handler signalled to draw the control bar on its
Canvas. An object
procedure which draws all aspects of the control must be implemented and
assigned to the property.
The Sender argument provides access to properties and methods for
the control instance. It must be cast to TCustomControlBar to
access members for the class type.
Use the Canvas property to render the background for the control in the event handler. The values from Font and Color are already applied to the corresponding properties in Canvas.
OnPaint is signalled from the inherited Paint method, and occurs
before the OnBandPaint event handler in the control is signalled.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
