Board index » delphi » How to set minimum windows size?

How to set minimum windows size?

I want to limit how small a window can be. What is the best way to do
that?

Thanks -- John

 

Re:How to set minimum windows size?


Quote
John E. Bell wrote:

> I want to limit how small a window can be. What is the best way to do
> that?

> Thanks -- John

There is a window message that helps a lot :

Procedure TMyForm.WMGetMinMaxInfo(Var Msg : TWMGetMinMaxInfo);
Begin
        Msg.MinMaxInfo^.ptMinTrackSize.x:=300;
        Msg.MinMaxInfo^.ptMaxTrackSize.x:=500;
End;

I hope it will help you,

Frdric GUILLIEN

Other Threads