Vcl.ComCtrls.TMonthCalendar.ConstrainedResize

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ConstrainedResize(var MinWidth, MinHeight, MaxWidth,  MaxHeight: Integer); override;

C++

virtual void __fastcall ConstrainedResize(int &MinWidth, int &MinHeight, int &MaxWidth, int &MaxHeight);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TMonthCalendar

Description

Overrides the inherited ConstrainedResize method.

Assures that the size constraints allow a full month to be displayed in the calendar. Then calls the inherited ConstrainedResize method.

The MinWidth, MinHeight, MaxWidth and MaxHeight parameters are passed to an OnConstrainedResize event handler, where they can be altered before they are applied to the attempted resize.

See Also