Can a code module raise an event?

NeoTechni

Well-Known Member
Licensed User
Longtime User
If so, how?

Or can only (java) libraries do it?

I'd rather raise an event than hardcode it to call something from a specific activity

Why:
I made a UI in a code module ( http://www.b4x.com/forum/basic4android-share-your-creations/11287-lcar-star-trek-tng-ui-clone.html ) and I want it to handle all the mouse/touch events
When an item is clicked, I want it to raise an event for it

EDIT: If it's not possible, I can just do it like Erel's multitouch example did it, and push the events into a list. Then just poll that list after touch events.
 
Last edited:

Djembefola

Active Member
Licensed User
Longtime User
You can simulate an event with callsub, for example:

CallSub2(Main,"My_CodeModule_Event",parameter)
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…