Vcl.Graphics.TCustomCanvas.DrawFocusRect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DrawFocusRect(const Rect: TRect); virtual; abstract;

C++

virtual void __fastcall DrawFocusRect(const System::Types::TRect &Rect) = 0 ;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TCustomCanvas

Description

Draws a rectangle in the style used to indicate that the object inside the rectangle has focus.

Override the DrawFocusRect method to implement drawing of a focused rectangle. DrawFocusRect is called for the perimeter of the image of a control when the control gets or loses input focus. Because DrawFocusRect uses an XOR function, calling it a second time while specifying the same rectangle removes the rectangle from the screen.

See Also