谁能帮我详细解释一下这句话type TNotifyEvent = procedure(Sender: TObject) of object;

shepengtao 2004-05-08 03:44:55
如题
...全文
143 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
skm 2004-05-09
  • 打赏
  • 举报
回复
不一定要在类中申明.只要指向的是一个类方法指针就可以
  • 打赏
  • 举报
回复
of object
是什么意思?

即这个声明是一个方法类型,不是函数类型,声明在一个类中,是类的一个方法,即方法类型。
shepengtao 2004-05-08
  • 打赏
  • 举报
回复
of object
是什么意思?
qiume 2004-05-08
  • 打赏
  • 举报
回复
type TNotifyEvent = procedure (Sender: TObject) ofobject;

Description

The 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.
shepengtao 2004-05-08
  • 打赏
  • 举报
回复
能够说得具体点吗?
各位老大
wolfAone 2004-05-08
  • 打赏
  • 举报
回复
lxftwo 2004-05-08
  • 打赏
  • 举报
回复
这就是说,一个事件可以与另一个事件相同。就如同赋值一样

5,928

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧