怎么设置窗口的父窗口包容控件? 我想在创建一个窗口form2后将其显示在先前创建的窗口form1的panel1包容控件中,并且填充满panel1??请高手给出处理办法,谢谢!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Form2.Parent:=Form1.Panel1; Form2.Align:=alClient;就可以了 Form2.ManualDock(Form1.Panel1); Form2.Align := alClient; 谢谢yangtxiang2007,jwpl190我使用这样的命令打开窗口,但是窗口上的控件不可点,什么原因? try Application.CreateForm(TPub_SetupPrinterForm, Pub_SetupPrinterForm); Pub_SetupPrinterForm.ManualDock(MainForm.Panel1); Pub_SetupPrinterForm.Align:=alClient; Pub_SetupPrinterForm.ShowModal; finally Pub_SetupPrinterForm.free; end; try Application.CreateForm(TPub_SetupPrinterForm, Pub_SetupPrinterForm); Pub_SetupPrinterForm.ManualDock(MainForm.Panel1); Pub_SetupPrinterForm.Align:=alClient; Pub_SetupPrinterForm.ShowModal; //这句就是垄断消息了。//应该使用 Pub_SetupPrinterForm.Visible=True; finally Pub_SetupPrinterForm.free; end; Application.CreateForm(TPub_SetupPrinterForm,Pub_SetupPrinterForm); Pub_SetupPrinterForm.ManualDock(MainForm.Panel1); Pub_SetupPrinterForm.Align:=alClient; Pub_SetupPrinterForm.Show; FormCreate和FormShow事问题 dbcombox 为何只能得到一条? dll中可以设置所有函数都能调用的变量么?怎么设? 难提求解:如何提取usb摄像头的硬件序列号呢? HELP!!!!!!!!! 刚卖了个3000元的二手车销售软件,每年维护费应该如何收取多少合适。具体协议应该如何签定? 关于“存储器不足”的错误 怎么样把access的ldb文件去掉. 大家来看看这个方案是否可行。 关于listbox 在TQuery中增加非字符类字段? 找不到可问的 散分
Form2.Parent:=Form1.Panel1;
Form2.Align:=alClient;
就可以了
Form2.Align := alClient;
try
Application.CreateForm(TPub_SetupPrinterForm, Pub_SetupPrinterForm);
Pub_SetupPrinterForm.ManualDock(MainForm.Panel1);
Pub_SetupPrinterForm.Align:=alClient;
Pub_SetupPrinterForm.ShowModal;
finally
Pub_SetupPrinterForm.free;
end;
Application.CreateForm(TPub_SetupPrinterForm, Pub_SetupPrinterForm);
Pub_SetupPrinterForm.ManualDock(MainForm.Panel1);
Pub_SetupPrinterForm.Align:=alClient;
Pub_SetupPrinterForm.ShowModal; //这句就是垄断消息了。
//应该使用 Pub_SetupPrinterForm.Visible=True;
finally
Pub_SetupPrinterForm.free;
end;
Pub_SetupPrinterForm.ManualDock(MainForm.Panel1);
Pub_SetupPrinterForm.Align:=alClient;
Pub_SetupPrinterForm.Show;