Skip to main content
Table of Contents

TTMSFNCGraphicsContext.DrawFocusRectangle Method

Draws a focus indicator around a rectangle using the given stroke settings.

API unit family: TMSFNCGraphics Declaring type: TTMSFNCGraphicsContext

Syntax

FMX.TMSFNCGraphics.hppPascalC++
procedure DrawFocusRectangle(AStroke: TTMSFNCGraphicsStroke; ARect: TRectF; AColor: TTMSFNCGraphicsColor; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); virtual; abstract;
virtual void __fastcall DrawFocusRectangle(TTMSFNCGraphicsStroke* AStroke, const System::Types::TRectF &ARect, TTMSFNCGraphicsColor AColor, TTMSFNCGraphicsModifyRectMode AModifyRectMode = (TTMSFNCGraphicsModifyRectMode)(0x2)) = 0;

Parameters

Name Description
AStroke Stroke settings used to draw the focus outline.
ARect Rectangle around which the focus indicator is drawn.
AColor Color of the focus indicator.
AModifyRectMode Pixel adjustment applied to the rectangle edges to align with the physical pixel grid.