1
120
Unregistered / Unconfirmed
GUEST, unregistred user!
我想动态创建TPageProducer,OnHTMLTag事件如何写和调用?谢谢
再加100分
以前我写了一个动态创建TMenuItem的程序,如下:
var i:integer;
begin
for i:=0 to 3do
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 TMenuItemdo
begin
showmesssge(caption);
end;
end;
再加100分
以前我写了一个动态创建TMenuItem的程序,如下:
var i:integer;
begin
for i:=0 to 3do
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 TMenuItemdo
begin
showmesssge(caption);
end;
end;