Recent

Author Topic: MDI form sizing problem  (Read 4273 times)

christensen

  • Full Member
  • ***
  • Posts: 127
MDI form sizing problem
« on: August 07, 2011, 04:53:44 pm »
Hi,

I wan to open all windows in the main form Tpanel, but i have problem with sizing.
Code: [Select]
procedure TForm1.MenuItem2Click(Sender: TObject);
begin
  Form2.Parent:=Panel2;
  Form2.Visible:=true;
end;

Form 2 style: fsMDIform

Main form windows state 'normal', form2 windows state is 'maximized'.
(http://img94.imageshack.us/img94/7249/normalep.th.jpg)

when i try to maximize the main form, form2 will look like on the second screenshot,
(http://img171.imageshack.us/img171/7913/max0.th.jpg)

when i try to maximize form 2 it look like:
(http://img685.imageshack.us/img685/92/trytomax.th.jpg)

and if i try again only then i have luck.
 (http://img12.imageshack.us/img12/3316/maxfl.th.jpg)

Than i try to comeback with the mainform and the second form remain bigger :(
(http://img684.imageshack.us/img684/2750/backnormal.th.jpg)
Lazarus 1.4.4, FPC 2.6.4, Windows 7 64bit, AMD Athlon 7750 black edition, Asus M3N78-CM
Lenovo L540 i7-4702MQ, Windows 10 x64,Lazarus 1.6.2,FPC 3.0

 

TinyPortal © 2005-2018