Show: Delphi C++
Display Preferences

Vcl.Controls.TWinControl.CanResize

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CanResize(var NewWidth, NewHeight: Integer): Boolean; override;

C++

virtual bool __fastcall CanResize(int &NewWidth, int &NewHeight);

Properties

Type Visibility Source Unit Parent
function protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TWinControl

Description

Indicates how the control can respond to a resize attempt.

CanResize is called automatically when an attempt is made to resize the control. The NewWidth and NewHeight parameters specify the attempted new values for the control's height and width. CanResize returns true if the control can be resized to the returned values of NewWidth and NewHeight. CanResize returns false if the control can't be resized.

CanResize generates an OnCanResize event. An OnCanResize event handler may change the values of NewHeight and NewWidth.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance