Link to home
Start Free TrialLog in
Avatar of gentlefox
gentlefox

asked on

Maximize a fsMDIChild to fit perfecly in the fsMDIForm

I'm using    

procedure TForm1.WMSysCommand(var msg: TWMSyscommand);
  begin
  If (msg.CmdType and $FFF0) = SC_MAXIMIZE Then
  Begin
    // set Panel's bounds

   (Code needed Here... by an expert)

  End
  Else
    inherited;
end;

I want to find the best way to get the exact size in the fsMDIForm Client left area to fit perfectly my maximized form without loosing my form border and icons.  Regardless if a put a menu, status bar, Group container, tree view, etc..

I know it's poosible because when i do a tile horizontal it's the result I'm looking for.  I can't use this fucntion because when i have 2 MDIChilds form, I still want my 2 MDIChilds over eatch other with the same size.

Thanks You Experts...
Avatar of robert_marquardt
robert_marquardt

If you have only one MDI child window and want it to cover the MDI client area without being maximized then
simply do an tile vertically or tile horizontally.
Avatar of gentlefox

ASKER

No because i have 3 MDIChilds that will overlap eatch other.  That's why i want to really do it manualy...
ASKER CERTIFIED SOLUTION
Avatar of mokule
mokule
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial