Vcl.Controls.TCanResizeEvent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TCanResizeEvent = procedure(Sender: TObject; var NewWidth, NewHeight: Integer;
var Resize: Boolean) of object;

C++

typedef void __fastcall (__closure *TCanResizeEvent)(System::TObject* Sender, int &NewWidth, int &NewHeight, bool &Resize);

Properties

Type Visibility Source Unit Parent
type
typedef
public
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls Vcl.Controls

Description

TCanResizeEvent is the type of the OnCanResize event handler.

Sender is the object that is being resized.

NewWidth returns the new width of the object.

NewHeight returns the new height of the object.

Resize returns true if the resize attempt can proceed and false if the attempt to resize should be aborted.

See Also