PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Anonymous on September 08, 2004, 04:59:43 AM

Title: MDIs with multiple different child windows
Post by: Anonymous on September 08, 2004, 04:59:43 AM
Hello,

I would like to see the availability of using different child windows in MDIs.

John
Title: MDIs with multiple different child windows
Post by: Haakon Birkeland on September 08, 2004, 04:46:54 PM
Ain't that the whole point of MDI? - Or do you have something specific in mind that you would care to elaborate?
Title: MDIs with multiple different child windows
Post by: TechSupport on September 08, 2004, 05:24:35 PM
Hi John,

FireFly already allows you to create any number of different MDI children windows. Maybe I am not following your question correctly.

In FireFly, you can specify that a Form is an MDIChild by simply changing the "MDIChild" property to "True". In the MDI sample project there is only one MDI child (frmDocument), but I could have easily had create other new Forms and specified them to be MDI children as well.

In the MDI sample program, an instance of the frmDocument Form is created in the "WM_COMMAND" message of the "MDIForm" form.

i.e

   Case IDC_MDIFORM_MNUNEW
     'Create the MDI Child
      hWndChild& = frmDocument_Show(HWND_MDIFORM_MDICLIENT, %FALSE)


If you have a different Form that you want to use then simply call that Form instead.  e.g.

   Case IDC_MDIFORM_MNUANOTHERCHILD
      'show a different MDI child
      hWndChild& = frmAnotherChild_Show(HWND_MDIFORM_MDICLIENT, %FALSE)


So, unless I am not understanding your question, FireFly already supports what you are wishing for.

:)