Is there a way to add a single event handler to all the views of a certain type when they are generated with the designer.
I know the admonition not to initialize a designer generated view, but is there a way to add another delegate on top of the default?
I'd rather not add a call to a secondary user-defined sub into every OnClick event of every view i want to process, and I would prefer to use the designer instead of creating all the views in code.
Also, may I please have an explanation of how the event delegation is handled under the covers when the designer initializes the view? For example, in c# one may assign as many event handlers(delegates) as wished to any control and to any of its events.
It appears to me that, in B4A, more than one event handler can be assigned to a view, but only one per event type. Is that correct?
Thanks for everybody's time.
I know the admonition not to initialize a designer generated view, but is there a way to add another delegate on top of the default?
I'd rather not add a call to a secondary user-defined sub into every OnClick event of every view i want to process, and I would prefer to use the designer instead of creating all the views in code.
Also, may I please have an explanation of how the event delegation is handled under the covers when the designer initializes the view? For example, in c# one may assign as many event handlers(delegates) as wished to any control and to any of its events.
It appears to me that, in B4A, more than one event handler can be assigned to a view, but only one per event type. Is that correct?
Thanks for everybody's time.
Last edited: