RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMonthCalendar.ConstrainedResize Method

Overrides the inherited ConstrainedResize method.

Pascal
procedure ConstrainedResize(var MinWidth: Integer; var MinHeight: Integer; var MaxWidth: Integer; var MaxHeight: Integer); override;
C++
virtual __fastcall ConstrainedResize(int MinWidth, int MinHeight, int MaxWidth, int MaxHeight);

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!