Hiding MDIChild forms

As an MDI beginner, I haven't figured out how to "hide" an MDIChild form without the "flicker" caused by changing the FormStyle to fsNormal and then Form1.Hide. For opening an MDIChild form, Form1.Show and then changing the FormStyle to fsMDIChild seems to work. Please help...


Comments

  • : As an MDI beginner, I haven't figured out how to "hide" an MDIChild form without the "flicker" caused by changing the FormStyle to fsNormal and then Form1.Hide. For opening an MDIChild form, Form1.Show and then changing the FormStyle to fsMDIChild seems to work. Please help...
    :
    :
    : there is no way to hide a MDI child form, you'll have to destroy it,
    sorry for the bad news. Maybe I'm wrong and if you find a way give me a hint.

  • What I've had to do to open my form is...

    Form1.FormStyle := fsMDIChild;
    Form1.WindowState := wsNormal;
    Form1.Visible := True;

    and to close...

    Form1.WindowState := wsMinimized;
    Form1.FormStyle := fsNormal;
    Form1.Visible := False;

    Note that changing the WindowState prevents the "flicker" caused from changing the FormStyle... this is a roundabout way of opening and closing MDIChildren. If anyone has a more gracious method, please share it with us. Thanks...

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories