Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Maximized MDI Child Forms go behind TStatusbar?

144 views
Skip to first unread message

Dan Meier

unread,
May 3, 2000, 3:00:00 AM5/3/00
to
I have an MDI application with a TStatusbar at the bottom of the main MDI
Form. When I Maximize any of the open MDI Child forms, the bottom portion
of the Child Form goes behind the Statusbar. It seems that the statusbar
height is not being excluded from the usable client area.

Any ideas?

Thanks

--
d...@ibsoft-us.com

Paul Ferrara

unread,
May 3, 2000, 3:00:00 AM5/3/00
to
Are you sure your status bar is attached to the form and not to a panel or
something else? I can't duplicate that behavior. All of my child forms
align the bottoms with the bottom of the main form when maximized.

Paul / ColumbuSoft
www.columbusoft.com

Dan Meier <d...@ibsoft-us.com> wrote in message news:39108cf4@dnews...

Dan Comeau

unread,
May 3, 2000, 3:00:00 AM5/3/00
to
Is the main form maximized? I found this problem with a toolbar made
with a panel. My solution: don't maximize program on startup.
Instead, I expand it non-maximized to fit the whole screen so that it
still looks as if maximized. If the application is subsequently
maximized by the user, it will still behaves as you want.

Dan Comeau

On Wed, 3 May 2000 15:37:24 -0500, "Dan Meier" <d...@ibsoft-us.com>
wrote:

Dan Meier

unread,
May 4, 2000, 3:00:00 AM5/4/00
to
I implemented your suggestion with the following code in the main MDI parent
OnCreate handler:

The WindowState in design mode is set to wsNormal.

LockWindowUpdate(Handle);
Width := Screen.Width;
Height := Screen.Height;
WindowState := wsMaximized;
LockWindowUpdate(0);

it works, thanks.
Dan

--
d...@ibsoft-us.com
"Dan Comeau" <dancomeau-no...@home.com> wrote in message
news:29q1hsc2crtpgrg66...@4ax.com...

0 new messages