francoisg Active Member Licensed User Longtime User Feb 13, 2015 #1 How does one expose an eventhandler in a class module? So that from an activity, one can type "Sub <Tab> MyClass" and select an event declaration from the dropdown.
How does one expose an eventhandler in a class module? So that from an activity, one can type "Sub <Tab> MyClass" and select an event declaration from the dropdown.
T Troberg Well-Known Member Licensed User Longtime User Feb 13, 2015 #2 You beat me to that question with four minutes! Just wanted to say that I'm wondering the same thing. Upvote 0
You beat me to that question with four minutes! Just wanted to say that I'm wondering the same thing.
thedesolatesoul Expert Licensed User Longtime User Feb 13, 2015 #3 See here: https://www.b4x.com/android/forum/t...include-pre-defined-events.28297/#post-164242 But it only works if the class is compiled as a library. Upvote 0
See here: https://www.b4x.com/android/forum/t...include-pre-defined-events.28297/#post-164242 But it only works if the class is compiled as a library.
Cableguy Expert Licensed User Longtime User Feb 13, 2015 #5 But it only works if the class is compiled as a library. Click to expand... The relay between the class and the calling activity will still work, but the event will not be listed automatically within the class properties Upvote 0
But it only works if the class is compiled as a library. Click to expand... The relay between the class and the calling activity will still work, but the event will not be listed automatically within the class properties