我是一个初学者,现在遇到了难题请教高手帮忙!!!!
  1.请问在父窗口中怎样建立多个子窗口??
   我用的是菜单形式。想在菜单下面显示子窗口的内容。就像是WORD等软件一样
  把内容显示在菜单下面。
  要用那些控件?????         谢谢指导啊???

解决方案 »

  1.   

    将窗体的formstyle属性设置一下就可以的
    父窗体设置为fsmdiform
    子窗体设置为fsmdichild
      

  2.   

    父窗体的formstyle属性设置为fsmdiform
    子窗体的formstyle属性设置为fsmdichild
    然后在project的option菜单里,forms选项卡里把子窗体从auto-creat forms 移到 available forms. 再在每个菜单的click事件里动态创建:
    //...
    if not Assigned(form1) then
      form1 := TForm1.Create(self);
    form1.show; 
    //...
      

  3.   

    开始建立工程时,把你的程序设为MDI程序。
      

  4.   

    在delphi中你新建的时候,选择projects下的MDI Application,系统会自动建一个例子的,你可以看看,
      

  5.   

    建立时:
    Application.CreateForm(T子窗体名,子窗体名);
    关闭时:
    Action:=CaFree;
      

  6.   

    父窗体的formstyle属性设置为fsmdiform
    子窗体的formstyle属性设置为fsmdichild