Detecting which view has been tapped

Sirrab

Member
Licensed User
Longtime User
Hi All,

new to basic4android and planning to purchase this week after I get paid :)

a quick question, I have created a app that creates views as required. as such I don't have a sub for eack button to trap events. is it possible to tell which view has been tapped such as a handle or id ? hope this makes sense

Craig
 

sukudxb

Member
Licensed User
Longtime User
Hi All,

new to basic4android and planning to purchase this week after I get paid :)

a quick question, I have created a app that creates views as required. as such I don't have a sub for eack button to trap events. is it possible to tell which view has been tapped such as a handle or id ? hope this makes sense

Craig


I think you can give a common event name for all objects. This you can do from the designer window, where you set the properties of the object. In the code you can handle the click event. You can use the Sender object to get the individual properties. I am not sure, there may be a better way.
 
Upvote 0
Top