是用manualdock函数实现停靠的,就是manualdock的第二个参数不知道怎么设置才能在tabsheet2上
知道的大虾,麻烦告诉一声,分数好说

解决方案 »

  1.   

    用默认的nil?
    不知道,学习
      

  2.   

    但是用默认的nil的话,它只在tabsheet1上,怎么也不会在tabsheet2上
      

  3.   

    DropControl is the control in the new dock site, if any, on which to drop the control. For example, when docking to a page control, DropControl would be a tab sheet.
      

  4.   

    帮助里面写的很详细了,应该是填tabsheet2
      

  5.   

    但是填了跟没有填是一样的呀,我看的懂帮助里的意思,但是效果不是想它上面写的那样呀,是不是pagecontrol组件本身不可以停靠的,就是manualdock(pagecontrol1,nil,alnone)它也没有停靠在上面,请知道的大虾指点下我这个菜鸟
      

  6.   

    Form2 := TForm2.Create(Self);
    Form2.Show;//后面这两条语句互换位置的效果还不太相同
    Form2.ManualDock(PageControl1, nil, alNone);