[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Controls' (#lcl)

TControl.Repaint

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

Declaration

Source position: controls.pp line 1728

public procedure TControl.Repaint; virtual;

Description

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

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

TControl.Parent

  

The control within which the control is shown.

TControl.IsVisible

  

Gets the effective visibility for the control and all of its Parent controls.

TControl.ControlStyle

  

Contains style flags which control the features or behaviors enabled for the control.

TControl.Invalidate

  

Causes a delayed Repaint of the control by marking its visible area of the control as invalid.

TControl.Update

  

Redraws invalidated parts of the control immediately.

TWinControl.PaintControls

  

Paints all child controls which do not have a Handle as part of their Parent.

TComponent.ComponentState


Version 3.2 Generated 2024-02-25 Home