Hello,
I am building a form which has various controls on it, and each control has various methods that are handled, such as onLoad, Click etc. When certain methods are fired, I need to write a log entry that that specific control's _something method was fired.
However, instead of adding the function call into each method, is there a way of creating a listener that will be able to react to subscribe to all the relevant controls and methods?
I have read up a bit on publisher-subscriber model etc, but it seems to be more geared towards custom events. For my solution, I need to subscribe to "built-in" events, such as _Click, _Loading etc. I do not want to add additional code into the existing methods.
Any ideas, is this even possible?
Thank you!