fcChangeLInk.pas
上传用户:hylc_2004
上传日期:2014-01-23
资源大小:46800k
文件大小:1k
源码类别:

Delphi控件源码

开发平台:

Delphi

  1. unit fcChangeLink;
  2. interface
  3. uses Classes;
  4. type
  5.   TfcChangeLink = class(TObject)
  6.   private
  7.     FOnChange: TNotifyEvent;
  8.     FOnChanging: TNotifyEvent;
  9.     FOnLoaded: TNotifyEvent;
  10.     FSender: TObject;
  11.   public
  12.     procedure Change; virtual;
  13.     procedure Changing; virtual;
  14.     procedure Loaded; virtual;
  15.     property OnChange: TNotifyEvent read FOnChange write FOnChange;
  16.     property OnChanging: TNotifyEvent read FOnChanging write FOnChanging;
  17.     property OnLoaded: TNotifyEvent read FOnLoaded write FOnLoaded;
  18.     property Sender: TObject read FSender write FSender;
  19.   end;
  20. implementation
  21. procedure TfcChangeLink.Change;
  22. begin
  23.   if Assigned(OnChange) then OnChange(Sender);
  24. end;
  25. procedure TfcChangeLink.Changing;
  26. begin
  27.   if Assigned(OnChanging) then OnChanging(Sender);
  28. end;
  29. procedure TfcChangeLink.Loaded;
  30. begin
  31.   if Assigned(OnLoaded) then OnLoaded(Sender);
  32. end;
  33. end.