Re: MDI problem



"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 )




.



Relevant Pages

  • Re: MDI Min Max - still there
    ... Basically think of a form with a Panel docked left, ... the space where the new mdi child form can be displayed is ... the user manually changes the Form1 window size, ... On the child form I set the Min / Maximize buttons to false. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: MDI Min Max - still there
    ... Basically think of a form with a Panel docked left, ... the space where the new mdi child form can be displayed is ... the user manually changes the Form1 window size, ... On the child form I set the Min / Maximize buttons to false. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Resizing an MDI child withim the MDIParent.
    ... I have been trying unsuccessfully to resize an MDI child form to fit ... > as a bit to big and the MDI displayes scroll bars. ... > positions in the MDI client area. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • RE: Repost: Controls are unreachable after scroll and form resize.
    ... form are visible and there is no scroll bars on the panel. ... some of the controls on the panel are placed ... Then if I resize the child form to the previous size ... the same as the locations after I drag the scroll bar just now. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • RE: Mdi Icon Position in MenuStrip
    ... you'd like to show the icon of a maximized MDI ... child form immediately left of the control box buttons(Minimize, Maximize, ... Maximize/Resore menu item ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.languages.vb)