Vcl.ActnMenus.TActionMainMenuBar.OnCanResize

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnCanResize: TCanResizeEvent read FOnCanResize write FOnCanResize;

C++

__property OnCanResize;

Properties

Type Visibility Source Unit Parent
event published
Vcl.ActnMenus.pas
Vcl.ActnMenus.hpp
Vcl.ActnMenus TActionMainMenuBar

Description

Occurs when an attempt is made to resize the control.

Vcl.ActnMenus.TActionMainMenuBar.OnCanResize inherits from Vcl.Controls.TControl.OnCanResize. All content below this line refers to Vcl.Controls.TControl.OnCanResize.

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.

OnCanResize is an event handler of type Vcl.Controls.TCanResizeEvent.

See Also