TTMSFNCGraphics.DrawFocusRectangle Method
Draws a focus indicator rectangle defined by integer coordinates in the given
AColor.
API unit family: TMSFNCGraphics
Declaring type: TTMSFNCGraphics
Overloads
Overload 1
Draws a focus indicator rectangle defined by integer coordinates in the given
AColor.
procedure DrawFocusRectangle(ALeft, ATop, ARight, ABottom: Integer; AColor: TTMSFNCGraphicsColor = gcBlack; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); overload; virtual;
Parameters
| Name | Description |
|---|---|
ALeft |
Left edge of the focus rectangle in integer pixels. |
ATop |
Top edge of the focus rectangle in integer pixels. |
ARight |
Right edge of the focus rectangle in integer pixels. |
ABottom |
Bottom edge of the focus rectangle in integer pixels. |
AColor |
Color of the focus indicator. Default is gcBlack. |
AModifyRectMode |
Pixel adjustment applied to the rectangle edges to align with the physical pixel grid. |
Overload 2
Draws a focus indicator rectangle from a
TRectin the givenAColor.
procedure DrawFocusRectangle(ARect: TRect; AColor: TTMSFNCGraphicsColor = gcBlack; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); overload; virtual;
Parameters
| Name | Description |
|---|---|
ARect |
Bounding rectangle for the focus indicator. |
AColor |
Color of the focus indicator. Default is gcBlack. |
AModifyRectMode |
Pixel adjustment applied to the rectangle edges to align with the physical pixel grid. |
Overload 3
Draws a focus indicator rectangle defined by double coordinates in the given
AColor.
procedure DrawFocusRectangle(ALeft, ATop, ARight, ABottom: Double; AColor: TTMSFNCGraphicsColor = gcBlack; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); overload; virtual;
Parameters
| Name | Description |
|---|---|
ALeft |
Left edge of the focus rectangle in floating-point pixels. |
ATop |
Top edge of the focus rectangle in floating-point pixels. |
ARight |
Right edge of the focus rectangle in floating-point pixels. |
ABottom |
Bottom edge of the focus rectangle in floating-point pixels. |
AColor |
Color of the focus indicator. Default is gcBlack. |
AModifyRectMode |
Pixel adjustment applied to the rectangle edges to align with the physical pixel grid. |
Overload 4
Draws a focus indicator rectangle from a
TRectFin the givenAColor.
procedure DrawFocusRectangle(ARect: TRectF; AColor: TTMSFNCGraphicsColor = gcBlack; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); overload; virtual;
Parameters
| Name | Description |
|---|---|
ARect |
Bounding rectangle for the focus indicator. |
AColor |
Color of the focus indicator. Default is gcBlack. |
AModifyRectMode |
Pixel adjustment applied to the rectangle edges to align with the physical pixel grid. |