NeoTechni Well-Known Member Licensed User Longtime User Sep 3, 2011 #1 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: Sep 4, 2011
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.
Djembefola Active Member Licensed User Longtime User Sep 3, 2011 #2 You can simulate an event with callsub, for example: CallSub2(Main,"My_CodeModule_Event",parameter) Upvote 0