I'm just curious to know about this. I know two ways to detect events in Delphi using the callback principle and the Windows message principle.
However, the principle of messages is not object-oriented, and callbacks are only suitable for one instance.
I would like a good solution for one event, where two different objects can perform an action after the event occurs.
In Java, I could just add another listener.
Does anyone know any equivalent approach in Delphi to this beautiful listener principle?
Geerten
source share