|
Post by Peewee on Apr 5, 2005 4:54:08 GMT -5
Hello,
First of all: congratulation for this wonderfull APB. I'm having lot of fun with it.
Now, I have two forms in my project (2 pages in a notebook ;-). I need to resize my form to full screen when I go on the second page (align alclient works fine, OK) and then, go back to a little window when coming back to the first form. Resize is OK and works fine BUT my little window stays in the upper left corner of the screen. Is there a way to center it on the screen? (I tried align alnone, refresh, ... and "AlignCenter" does not exists!)
Thanks a lot
Peewee
|
|
|
Post by Murariu Alexandru on Apr 6, 2005 15:09:30 GMT -5
Use the Position property of TForm. And leave the Align to alNone Example: Self.Position := poScreenCenter; Note:Ussualy to maximize the form the Self.WindowState is set to wsMaximized, to restore the window set back to wsNormal The align property of TForm is used to create Toolbar like applications.
|
|