F fshell Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-19 #21 PostMessage(Panel1.Handle, WM_CLOSE, 0, 0);
N Nizvoo Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-22 #24 改变Parent不行啊~~~~~~~~~~~~~~~ Focus没转移。。
N Nizvoo Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-22 #26 代码: 这样好了。。。。。呵呵 procedure TForm1.SpeedButton1Click(Sender: TObject); begin // SpeedButton1.Parent := Form1; // SpeedButton1. //SpeedButton1.Free; if SpeedButton1.Parent <> Panel1 then Panel1.Free else SpeedButton1.Parent := Form1; end;
代码: 这样好了。。。。。呵呵 procedure TForm1.SpeedButton1Click(Sender: TObject); begin // SpeedButton1.Parent := Form1; // SpeedButton1. //SpeedButton1.Free; if SpeedButton1.Parent <> Panel1 then Panel1.Free else SpeedButton1.Parent := Form1; end;
X xuzhudi Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-26 #27 看来只有fshell的方法能保证不出错,我试过上面大侠的所有方法,都能作到最好 你还是使用fshell的方法吧,只要不出错,什么都行啊