TcxCanvas.DrawFocusRectEx(TRect,TcxBorders,Boolean) Method
Draws a focus rectangle or any number of its borders.
Declaration
procedure DrawFocusRectEx(const R: TRect; ABorders: TcxBorders; AExclude: Boolean = False);
Parameters
Name | Type |
---|---|
R | TRect |
ABorders | TcxBorders |
AExclude | Boolean |
Remarks
Call this procedure and pass a target rectangle as the R parameter to draw a non-scrollable pixel-wide focus outline. Pass a set of borders as the ABorders parameter to determine which borders of the focus rectangle are visible. The DrawFocusRectEx procedure draws a full focus rectangle in the same way as the DrawFocusRect procedure if you pass the cxBordersAll global constant as the ABorders parameter.
Additionally, you can pass True as the optional AExclude parameter to exclude a thin frame from the clip region to prevent other draw operations on top of the displayed non-scrollable focus outline.
Note
To scroll content with the focus outline or any of its parts, call the DrawFocusRectEx procedure with the same parameters to erase it. Then, call the same procedure again to draw the outline at a new target position.