Skip to main content
Pie
ra0

TcxCanvas.DrawDesignSelection(TRect,Integer) Method

Draws a custom focus rectangle around a UI element.

Declaration

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