Board index » delphi » Characters

Characters

How can I set limits for the stretching of a Form?
Lars.
 

Re:Characters


On Tue, 10 Nov 1998 19:10:03 +0100, "Lars Josefsson"

Quote
<lars.josefs...@jarfalla.mail.telia.com> wrote:
>How can I set limits for the stretching of a Form?
>Lars.

In the form's OnResize event routine, do the following:

  if Form1.Width > MaxWidth then Form1.Width := MaxWidth;
  if Form1.Height > MaxHeight then Form1.Height := MaxHeight;

where MaxWidth and MaxHeight are the limits you want to use.
Hope this helps...

love, peace and bananas,
Matty Dee

Other Threads