Controls.TControl.OnCanResize

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From Controls.pas

	property OnCanResize: TCanResizeEvent read FOnCanResize write FOnCanResize;


Unit: Controls

Type: event

Visibility: protected

Member Of: TControl

C++ Information

From Controls.hpp

	__property TCanResizeEvent OnCanResize;


Unit: Controls

Type: property

Visibility: protected

Member Of: TControl

Description

Occurs when an attempt is made to resize the control.


Use OnCanResize to adjust the way a control is resized. If necessary, change the new width and height of the control in the OnCanResize event handler. The OnCanResize event handler also allows applications to indicate that the entire resize should be aborted.

If there is no OnCanResize event handler, or if the OnCanResize event handler indicates that the resize attempt can proceed, the OnCanResize event is followed immediately by an OnConstrainedResize event.

See Also

Personal tools
Translations
Newest Version