J jianguobu Unregistered / Unconfirmed GUEST, unregistred user! 2005-01-24 #3 第一问 http://www.delphibbs.com/keylife/iblog_show.asp?xid=12431 第二问:是不是如下这样,我理解不太清楚你的意思 if not Assigned(KhDaGlform) then begin KhDaGlform:=TKhDaGlform.Create(Self); KhDaGlform.top :=1; KhDaGlform.ShowModal; end else KhDaGlform.BringToFront;
第一问 http://www.delphibbs.com/keylife/iblog_show.asp?xid=12431 第二问:是不是如下这样,我理解不太清楚你的意思 if not Assigned(KhDaGlform) then begin KhDaGlform:=TKhDaGlform.Create(Self); KhDaGlform.top :=1; KhDaGlform.ShowModal; end else KhDaGlform.BringToFront;
格 格风 Unregistered / Unconfirmed GUEST, unregistred user! 2005-01-24 #4 在设计时已创建好了窗体,再将她设置成为avirable forms ,点击按钮form显示,按钮事件怎样编写?
H hotboys Unregistered / Unconfirmed GUEST, unregistred user! 2005-01-24 #5 首先uses Form2;//假设你那个avirable forms叫form2 然后: procedure TForm1.Button1Click(Sender: TObject); var myForm:TForm; begin try myForm := TForm2.Create(Self); myForm.ShowModal; finally myForm.Free; end; end;
首先uses Form2;//假设你那个avirable forms叫form2 然后: procedure TForm1.Button1Click(Sender: TObject); var myForm:TForm; begin try myForm := TForm2.Create(Self); myForm.ShowModal; finally myForm.Free; end; end;
揽 揽月 Unregistered / Unconfirmed GUEST, unregistred user! 2005-01-24 #6 动态创建窗体jianguobu已经回复了,支持。 在按钮事件里写show或showmodal不行吗,你既然是事先创建好的,要 uses 一下。