S
sjloop
Unregistered / Unconfirmed
GUEST, unregistred user!
小弟初学DELPHI,在form1中放入3个button,然后按delphi的帮助的例子写出了下面的语句:
procedure TMainForm.Button1Click(Sender: TObject);
begin
if Sender = Button1 then
AboutBox.Caption := 'About ' + Application.Title
else
AboutBox.Caption := '';
AboutBox.ShowModal;
end;
但是我只能在按button1时会showmodal,按其他button时根本没反应,请问是哪里出了问题????
procedure TMainForm.Button1Click(Sender: TObject);
begin
if Sender = Button1 then
AboutBox.Caption := 'About ' + Application.Title
else
AboutBox.Caption := '';
AboutBox.ShowModal;
end;
但是我只能在按button1时会showmodal,按其他button时根本没反应,请问是哪里出了问题????