CS_TBL explained it very very good.
If you need more examples, have a look into the SmartButton source code. They are completely event based and emitting also their own events and using the extra object.
What is the advantage of item #4 (sending an event) over item #3? Flexibility? Could you somehow embed the new parameters in the event?
I use #4 for my own gui constructs i wanna use ever and ever again and #3 for updating just normal gadget stuff.
If you need more examples, have a look into the SmartButton source code. They are completely event based and emitting also their own events and using the extra object.
What is the advantage of item #4 (sending an event) over item #3? Flexibility? Could you somehow embed the new parameters in the event?
I use #4 for my own gui constructs i wanna use ever and ever again and #3 for updating just normal gadget stuff.