Skip to main content
Pie
ra0

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCanvas.DrawFocusRect(TRect) Method

Draws a focus rectangle around a UI element.

#Declaration

Delphi
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