Sign in Join
FPDoc Onlineexperiment

TCanvas.DrawFocusRect procedure

Member of TCanvaspublicIn unit Graphics

Draws a focus rectangle around the specified rectangle on the canvas.

Declaration

pascal
procedure DrawFocusRect(const ARect: TRect); virtual

Description

DrawFocusRect is a method used to draw a focus rectangle around the rectangular region specified in ARect.

DrawFocusRect calls Changing to signal an assigned OnChanging event handler prior to drawing the focus rectangle. It calls Changed to signal an assigned OnChange event handler immediately after drawing the focus rectangle.

DrawFocusRect calls the DrawFocusRect routine in the LCL interface to perform the drawing opertation using the Handle for the canvas.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.