M Mike1970 Well-Known Member Licensed User Longtime User Dec 9, 2019 #1 Hi, where can I find some documentation/tutorial on #event in B4i class? I want to add a custom event in a code module, fired by my class. thanks
Hi, where can I find some documentation/tutorial on #event in B4i class? I want to add a custom event in a code module, fired by my class. thanks
Erel B4X founder Staff member Licensed User Longtime User Dec 9, 2019 #2 The event attribute is only used by the IDE for events auto-completion. You should use CallSub or CallSubDelayed to raise events. There are many examples of custom views with events. The same pattern is also relevant for other types of classes. One example: https://www.b4x.com/android/forum/t...google-place-autocomplete-view.81976/#content Upvote 0
The event attribute is only used by the IDE for events auto-completion. You should use CallSub or CallSubDelayed to raise events. There are many examples of custom views with events. The same pattern is also relevant for other types of classes. One example: https://www.b4x.com/android/forum/t...google-place-autocomplete-view.81976/#content
M Mike1970 Well-Known Member Licensed User Longtime User Dec 9, 2019 #3 Erel said: The event attribute is only used by the IDE for events auto-completion. You should use CallSub or CallSubDelayed to raise events. There are many examples of custom views with events. The same pattern is also relevant for other types of classes. One example: https://www.b4x.com/android/forum/t...google-place-autocomplete-view.81976/#content Click to expand... Ok thanks Erel, later I will download this class and look how you did Upvote 0
Erel said: The event attribute is only used by the IDE for events auto-completion. You should use CallSub or CallSubDelayed to raise events. There are many examples of custom views with events. The same pattern is also relevant for other types of classes. One example: https://www.b4x.com/android/forum/t...google-place-autocomplete-view.81976/#content Click to expand... Ok thanks Erel, later I will download this class and look how you did