为创建的TSpeedButton 指定OnClick事件事件中的代码如下:ShowMessage(IntToStr(TSpeedButton(Sender).Tag));