1
110
Unregistered / Unconfirmed
GUEST, unregistred user!
我想动态创建TPageProducer,OnHTMLTag事件如何写和调用?谢谢
以前我写了一个动态创建TMenuItem的程序,如下:
var i:integer;
begin
for i:=0 to 3 do begin
subitem:=TMenuItem.create(self);
subitem.caption:='sdfgdfg';
subitem.onclick:=mypopup;
mainmenu.item[0]:=add(subitem);
end;
end;
procedure mypopup(sender:TObject);
begin
with sender as TMenuItem do begin
showmesssge(caption);
end;
end;
以前我写了一个动态创建TMenuItem的程序,如下:
var i:integer;
begin
for i:=0 to 3 do begin
subitem:=TMenuItem.create(self);
subitem.caption:='sdfgdfg';
subitem.onclick:=mypopup;
mainmenu.item[0]:=add(subitem);
end;
end;
procedure mypopup(sender:TObject);
begin
with sender as TMenuItem do begin
showmesssge(caption);
end;
end;