mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-29 08:09:43 +02:00
TAChart: Add TListener.OnNotify property
git-svn-id: trunk@31664 -
This commit is contained in:
parent
03f4033c49
commit
e3caa9ce61
@ -151,8 +151,9 @@ type
|
||||
constructor Create(ARef: PPointer; AOnNotify: TNotifyEvent);
|
||||
destructor Destroy; override;
|
||||
procedure Forget; virtual;
|
||||
procedure Notify(ASender: TObject); virtual;
|
||||
procedure Notify(ASender: TObject);
|
||||
property IsListening: Boolean read GetIsListening;
|
||||
property OnNotify: TNotifyEvent read FOnNotify write FOnNotify;
|
||||
end;
|
||||
|
||||
{ TBroadcaster }
|
||||
@ -598,7 +599,8 @@ end;
|
||||
|
||||
procedure TListener.Notify(ASender: TObject);
|
||||
begin
|
||||
FOnNotify(ASender)
|
||||
if Assigned(FOnNotify) then
|
||||
FOnNotify(ASender)
|
||||
end;
|
||||
|
||||
{ TBroadcaster }
|
||||
|
Loading…
Reference in New Issue
Block a user