Skip to main content

TdxCustomDockControl.OnCustomDrawResizingSelection Event

Enables you to custom paint resizing bars.

Declaration

property OnCustomDrawResizingSelection: TdxCustomDrawSelectionEvent read; write;

Remarks

This event is deprecated, and is retained for backward compatibility only. We recommend that you do not handle this event in Windows Vista or later to avoid performance issues caused by device contexts in these operating systems.

The Sender parameter identifies the dock control being resized.

The DC parameter specifies the handle to the display device context.

The ARect parameter specifies the position and size of the bar. Note that this is the position and size that are used when for the default painting of the bar and you can use your own settings. For instance, you can paint the bar with a different width.

The Erasing parameter specifies whether the event handler must erase the previously painted bar or paint it.

The Zone parameter represents the resize zone where the control resizing has been initiated. You can use properties of the object returned by this parameter to obtain the initial position of the resize bar and to determine the resize direction. Access the Rectangle and Direction properties of this object.

Use the Handled parameter to specify whether default painting needs to be performed. If all the desired painting is implemented manually in the OnCustomDrawResizingSelection event, set this parameter to True.

Please refer to the Docking Frame and Resizing Bar Custom Painting topic for more information and code examples.

See Also