Delphi

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • SV: MDI frame not main form?

    1 answers - 1509 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Since I am a curious person I tried to do it. A D5-application allow me to
    create two MDIForms. But the children always go to the mainform if it's an
    MDIForm otherwise it raises "cannot create, no mdiforms active" message.
    What you are referring to is creating own MDI-handling or some 3rd party
    component?
    Regards, Fredrik.
    meddelande
    F: delphi-talk-bounces (AT) elists (DOT) org [mailto:delphi-talk-bounces (AT) elists (DOT) org]
    F Stephen Posey
    Skickat: den 10 augusti 2005 21:16
    Till: Delphi-Talk Discussion List
    : Re: MDI frame not main form?
    Liz Hundy wrote:
    Is it possible to have an MDI form which is not the main form of an
    application?
    I want to build a form that contains several different views that can be
    tiled / cascaded / opened / closed independently. But it will not be the
    main form of my application.
    Sure, despite the names there's no direct relationship between an
    MDI Main Form and the Main Form of an application.
    The default VCL code uses the first form created with the
    Application object as its owner as Application.MainForm, and if
    you've used the MDI Application template, that will indeed be the
    MDI MainForm, but you don't have to leave it that way.
    Stephen Posey
    slposey (AT) concentric (DOT) net
    Delphi-Talk mailing list -Delphi-Talk (AT) elists (DOT) org
    Delphi-Talk mailing list -Delphi-Talk (AT) elists (DOT) org
  • No.1 | | 1063 bytes | |

    Fredrik Larsson wrote:

    Since I am a curious person I tried to do it. A D5-application allow me to
    create two MDIForms. But the children always go to the mainform if it's an
    MDIForm otherwise it raises "cannot create, no mdiforms active" message.

    What you are referring to is creating own MDI-handling or some 3rd party
    component?

    Seems I should have tested this before replying.

    AFAIK from the Windows API perspective there's no requirement for
    an MDI Mainform to be a Windows application's Main Form.

    However, there ARE assumptions in the VCL that any MDI form is
    the Application.MainForm.
    (Look in TCustomForm.CreateWindowHandle).

    Since CreateWindowHandle is virtual, it should be possible to
    create a descendant that avoids those assumptions; but I don't
    have the time/resources at the moment to dig into this much
    further, I fear.

    Stephen Posey
    slposey (AT) concentric (DOT) net

    Delphi-Talk mailing list -Delphi-Talk (AT) elists (DOT) org

Re: SV: MDI frame not main form?


max 4000 letters.
Your nickname that display:
In order to stop the spam: 0 + 0 =
QUESTION ON "Delphi"

EMSDN.COM