Sorry, but I had another question:
When making an MDI Form and the MDI Childs. How do you prevent the MDI Child windows from opening when the MDI Form loads?
In Delphi menu:
Projects\Options
Move your child form in available forms
put 2 buttons on your MDI Form and in its OnClick event:
(assuming Form1: MDI Form and Form2: Child Form
Button1: Open Child FOrm
Button2: Close Child form)
Code:
procedure TForm1.Button1Click(Sender: TObject);
begin
form2 := tform2.Create(self);
form2.Show;
end;
procedure TForm1.chiudi2Click(Sender: TObject);
begin
ActiveMDIChild.Close;
form2.Free;
end;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.