type TNotifyEvent = procedure (Sender: TObject) ofobject;DescriptionThe TNotifyEvent type is the type for events that have no event-specific parameters. These events simply notify the component that a specific event occurred. For example, OnClick, which is of type TNotifyEvent, notifies the control that a click event occurred on the control.The Sender parameter is the object whose event handler is called.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
For example,.with the OnClick event of a button, the Sender parameter is the button component that is clicked.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
For example,.with the OnClick event of a button, the Sender parameter is the button component that is clicked.
解决方案 »
- DBExpress连接MSSQL2000的blobsize的问题,郁闷一星期了,仍未解决
- 获得取得网页框架的函数怎么不能通过呢?
- 使用原生ADO还能使用DBEdit和DBCtrlGrid吗
- delphi与sql 2000的数据库备份与恢复问题,调试说“can't open avi”什么的,备份代码如下
- InstallShield Express for delphi6 谁有给我(中文)。50分
- 多窗体的子窗体问题???高分相送!
- 梦在何方
- 刚刚注册都大2了还什么都不会呢 怎么学好DEL啊 推荐几本书哥哥 姐姐!!
- 如何制作在任务栏不断闪烁的功能?
- 关于showmessage和messagedlg标题栏的问题(50分)
- 时间上的小问题:P
- 有李维的《Delphi5.x分布式多层应用》的电子书箱下载吗?
举例:
Button1和Button2的Onclike事件可以都指向Button1Click,则可以有以下用法:
procedure TForm1.Button1Click(Sender:TObject)
begin
if (Sender=Button1) then
............
if (Sender=Button2) then
............
end;