There is one parent form ( fsMDIForm ) and two children ( fsMDIChild ). Tell me how to make so that at the start of the program, the child forms are not loaded (were hidden)?
|
1 answer
In the settings of the project, the menu item Project -> Options on the Forms tab from the Auto-create forms list move the child MDI form to the right list using the right arrow. And in the process of the program, you will have to create a form manually - programmatically, for example, when you press a button (the names of the components may differ):
procedure TMainForm.ButtonCreateClick(Sender: TObject); begin ChildForm:=TChildForm.Create(Owner); end; |