Author Topic: Maximize Form  (Read 6139 times)


  • Guest
Maximize Form
« on: August 09, 2004, 11:06:14 pm »

I can't maximize a form.



  • Guest
Maximize Form
« Reply #1 on: September 05, 2004, 03:06:29 pm »

I think you need to do what I had to do in the past with Kylix: calculate the size & position of your form and its content using the size of the screen. This gives something like that:

Code: [Select]

Form1.Height := Screen.Height
Form1.Width := Screen.Width

    // then use the form to set the content:
btOk.Left := Form1.Left + 800 // btOk will be placed at 800 pixels from the left side of the form
btCancel.Left := btOk.Left + btOk.Width // btCancel will be placed on the left of btOk

It didn't check that code but if I remember well this is it.
This way your form will look good whatever the resolution or the size of the form may be.



TinyPortal © 2005-2018