TcxCanvas.DrawFocusRect(TRect) Method
Draws a focus rectangle around a UI element.
Declaration
procedure DrawFocusRect(const R: TRect);
Parameters
Name | Type |
---|---|
R | TRect |
Remarks
Call this procedure and pass a target rectangle as the R parameter to draw a non-scrollable pixel-wide focus outline. To scroll content with the focus outline, call the DrawFocusRect procedure again with the same parameter to remove the focus outline. Then, call the same procedure to draw a focus outline at a new target position.
The following image shows the focus rectangle around a grid View’s Group By box caption.
Note
The DrawFocusRect procedure calls the DrawFocusRect procedure of the underlying canvas.
See Also