Delphi Tips Trick

For Newbie

Iklan Responsive Atas

LightBlog
Responsive Ads Here

Tuesday, 15 November 2011

Limiting Form Size on Delphi Aplication


Limiting the maximum and minimum size (width and height) Form.

# Method 1
By coding:
TForm1.FormCreate procedure (Sender: TObject);
begin
   with Constraints do
   begin
     MaxHeight: = 200; / / Height Max
     MaxWidth: = 200; / / Max Width
     MinHeight: = 200; / / Height Min
     MinWidth: = 200; / / Width Min
   end;
end;

Method # 2
Without coding:
Find property Constraints in Object Inspector. Set the value / property value of MaxHeight, MaxWidth, MinHeight and MinWidth.
form size limit delphi


Learning Delphi - Form Size Limits
Although Form1.BorderStyle = bsSizeable, but the user can not resize the Form1.

No comments: