Re: MDI problem
- From: "Henry Bartlett" <hambar@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 26 Sep 2006 11:59:39 +1000
"RobK" <robert.kryska@xxxxxxxxxxxxxx> wrote
I've got an MDI Application. MDI Form is empty, form with menu and
toolbar only.
But I would like to place on that empty space something: for example
MonthCalendar, Clock, or just Panel.
When I do that, during execution, when I open a MDI Child Form, this
Child Form lays UNDER that Calendar, Panel!!!
What can I do to have that Calendar and Panel staying under
ChildForm, like a wallpaper of MDIForm?
I don't know of any way that you can use the client area of an MDI
form as "wallpaper".
From the Win32 Programmer's Reference (Win32.hlp):
"An MDI application does not display output in the client area of the
frame window. Instead, it displays the MDI client window."
Open Win32.hlp and do a "Find" for "MDI", select "About the Multiple
Document Interface" and read it and the next few screens.
Two approaches that may work for you.
1. Use a panel aligned to top, bottom, left or right and place your
controls on that. Your MDI children will occupy the remaining client
area.
2. Design a dialog-style form containing the calendar and use
ShowModal to display it. You can hide it when it's not needed.
This is the approach that I normally use.
--
Henry Bartlett
Delphi Links Page:
( http://www.hotkey.net.au/~hambar/habit/delflink.htm )
.
- Follow-Ups:
- Re: MDI problem
- From: J French
- Re: MDI problem
- References:
- MDI problem
- From: RobK
- MDI problem
- Prev by Date: Re: MDI problem
- Next by Date: Re: Find a Month in a string
- Previous by thread: Re: MDI problem
- Next by thread: Re: MDI problem
- Index(es):
Relevant Pages
|