L
Luck3919
Unregistered / Unconfirmed
GUEST, unregistred user!
近日下载一个组件,看到有这样的代码,不知其意和其作用,请有经验的DFW帮我指点:
unit imagebutton;
interface
uses
SysUtils, Classes, Controls, SysUtils, Messages, Windows, Consts, Forms,
Graphics, Stdctrls;
type
TactiveChange = procedure(sender:Tobject;active:boolean) of object;
type
imagebutton = class(TGraphicControl)
private
Fabout:String;
Factive:boolean;
Fpicture:Tpicture;
........
针对
type
TactiveChange = procedure(sender:Tobject;active:boolean) of object;
我想可能是定义的一个过程,但是它在程序中的作用是什么?定义它的依据又是什么呢?
为什么要这样子定义呢?
unit imagebutton;
interface
uses
SysUtils, Classes, Controls, SysUtils, Messages, Windows, Consts, Forms,
Graphics, Stdctrls;
type
TactiveChange = procedure(sender:Tobject;active:boolean) of object;
type
imagebutton = class(TGraphicControl)
private
Fabout:String;
Factive:boolean;
Fpicture:Tpicture;
........
针对
type
TactiveChange = procedure(sender:Tobject;active:boolean) of object;
我想可能是定义的一个过程,但是它在程序中的作用是什么?定义它的依据又是什么呢?
为什么要这样子定义呢?