Skip to main content

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

TdxCustomDockControl.OnResizing Event

In This Article

Fires repeatedly when resizing the dock control.

#Declaration

Delphi
property OnResizing: TdxResizingEvent read; write;

#Remarks

Handle the OnResizing event if you need to perform actions during the dock control resizing process. The event fires each time the width or height of the control is potentially changed. Note that if you need to restrict resizing the control to specific dimensions, the OnCanResize event should be handled. It has an additional parameter specifying whether resizing is allowed.

The Sender parameter of the event specifies the dock control being resized. The Zone parameter identifies the resize zone where the resizing process has been initiated. You can use the Direction property of this zone object to determine whether the dock control is being resized vertically or horizontally. The Rectangle property can be used to obtain the initial zone position. The X and Y parameters specify the current screen coordinates of the mouse pointer. To obtain the control’s client coordinates, use the ScreenToClient method.

See Also