Sign in Join
FPDoc Onlineexperiment

TNotifierXButton.Paint procedure

Member of TNotifierXButtonpublicIn unit PopupNotifier

Draws the button in its current state.

Declaration

pascal
procedure Paint; override

Description

Paint is an overridden procedure which draws the close button using the Canvas for the control. Paint updates the Canvas with the pen and brush needed to draw the button in its current state. Canvas methods are called to draw the filled rectangle and "X" icon displayed on the close button.

Paint calls the inherited method prior to exit to signal the OnPaint event handler (when assigned).

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.