美工材料有哪些:toolbar在网页中如何调用某个按钮事件

来源:百度文库 编辑:神马品牌网 时间:2024/05/11 01:47:20
是网页中加的控件,而非vb、vc中,
假设按钮的index=1,请写个代码头,有劳
我要求的是近乎javascript语法的,而非vb语法的

我给出IntraWeb网页的写法
html的做法不清楚

procedure ToolBar1Click(Sender:TObject;Button:TToolButton);
var
Index:Integer;
begin
Index:=Button.Tag;
case Index of
1://按下第一个按钮时做的事
2://按下第二个按钮时做的事
end;
end;