How to restore event handler from Event<T>?

1 view
Skip to first unread message

Chee-Yang Chau

unread,
Jan 27, 2026, 11:32:04 PM (5 days ago) Jan 27
to Spring4D
Hi,

When using Event<T> for multi cast scenario:

var E: Event<TNotifyEvent>;
begin
  E.Add(Button1.OnClick);
  E.Add(Click2);
  Button1.OnClick := E;
end;

How may I restore original Button1.OnClick handler once I dispose E?
Reply all
Reply to author
Forward
0 new messages