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.DrawDesignSelection(TRect,Integer) Method

Draws a custom focus rectangle around a UI element.

#Declaration

Delphi
procedure DrawDesignSelection(ARect: TRect; AWidth: Integer = cxDesignSelectionWidth);

#Parameters

Name Type
ARect TRect
AWidth Integer

#Remarks

Call this procedure and pass a target rectangle as the ARect parameter to draw a non-scrollable focus outline that has a custom width. Pass the width (in pixels) as the optional AWidth parameter. DevExpress controls call the DrawDesignSelection procedure to draw selection rectangles at design time.

Note

To scroll content with the drawn outline, call the DrawDesignSelection procedure with the same parameters to erase it. Then, call the same procedure again to draw the outline at a new target position.

See Also