出
出现派
Unregistered / Unconfirmed
GUEST, unregistred user!
我的源码是这样的:
procedure Addbuttons(pnl1:Tpanel;btnidex:integer;Buttoncaptions:string;buttonname:string);
begin
with Tspeedbutton.Create(pnl1) do
begin
caption:=buttoncaptions;
name:=buttonname;
parent:=pnl1;
height:=23;
width:=102;
top:=height*btnidex +23;
flat:=true;
left:=2;
OnClick :=buttonclick; 编译 这一句提示有错。。。。怎么解决
end;
end;
procedure buttonclick(btnname:string;exepath:string;sender:Tobject);
begin
if TSpeedButton(sender).Name=btnname then
begin
...
end;
end;