Back to Devexpress

TdxZone.CanResize(TPoint,TPoint) Method

vcl-dxdockcontrol-dot-tdxzone-dot-canresize-x28-system-dot-types-dot-tpoint-system-dot-types-dot-tpoint-x29.md

latest1.9 KB
Original Source

TdxZone.CanResize(TPoint,TPoint) Method

Returns a value indicating whether the specified resizing operation can be performed.

Declaration

delphi
function CanResize(StartPoint: TPoint; EndPoint: TPoint): Boolean; virtual;

Parameters

NameType
StartPointTPoint
EndPointTPoint

Returns

Type
Boolean

Remarks

The CanResize method returns True if the specified resizing operation can be performed. The operation’s parameters are specified by the StartPoint and EndPoint parameters. They specify the mouse pointer position at the beginning and end of the operation. When performing horizontal resizing, only horizontal coordinates of the specified points are taken into account.

If the specified resizing operation is not valid, the CanResize method returns False. This takes place, for instance, if the potential dimension is greater than that of its parent control.

In addition to performing internal operation validity checking, the CanResize method raises the OnCanResize event of the owning control. You can write a handler for this event to add constraints if needed. If the event handler prevents the operation, the CanResize method returns False.

The CanResize method is used internally. Most commonly you will have no need to use it in applications.

Note

the CanResize method is not called when changing dimensions of the owning dock control via code.

See Also

TdxCustomDockControl.OnCanResize

TdxZone Class

TdxZone Members

dxDockControl Unit