I've been using click events fine no issue especially with listviews where variables are passed to the event such as itemID and position.
However is it possible to define your own click event which expects specific variables to be passed to it when the event is raised? I know how to defined the sub routine to handle the event the question is how to tell B4A that when a click event is raised it need to send a variable too.
Example - I'm using Ultimate List View library (which is brill) and have actions defined when the click event is raised on an individual item in the list - no problem with that.
However I'm adding an image view within the item entry of the list view to represent a edit button, so I want a second click event just for the edit button (within the item entry of the list) which would also need to pass an itemID of the record being edited.
So I assume somehow need to define a click event is accepts an ItemID (int) but if possible how do I declare the image view should send ItemID on being clicked in the first instance?
However is it possible to define your own click event which expects specific variables to be passed to it when the event is raised? I know how to defined the sub routine to handle the event the question is how to tell B4A that when a click event is raised it need to send a variable too.
Example - I'm using Ultimate List View library (which is brill) and have actions defined when the click event is raised on an individual item in the list - no problem with that.
However I'm adding an image view within the item entry of the list view to represent a edit button, so I want a second click event just for the edit button (within the item entry of the list) which would also need to pass an itemID of the record being edited.
So I assume somehow need to define a click event is accepts an ItemID (int) but if possible how do I declare the image view should send ItemID on being clicked in the first instance?