Sign in Join
FPDoc Onlineexperiment

TControl.Repaint procedure

Member of TControlpublicIn unit Controls

Immediately redraws the control when visible, bypassing the message queue.

Declaration

pascal
procedure Repaint; virtual

Description

Repaint is a method called redraw the control when it is visible. No actions are performed in the method when:

  • Parent has not been assigned.
  • Parent does not have a valid handle.
  • ComponentState contains the value csDestroying.
  • The effective visibility from IsVisible is False.

When the control is Parented, it is redrawn using the style indicated in ControlStyle. When csOpaque is included, a device context is retrieved and the PaintControl method is called for the clipping rectangle in the Parent control. When csOpaque is omitted, the Invalidate and Update methods are called to request the control to redrawn.

See also

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