cenyu Active Member Licensed User Longtime User Feb 10, 2023 #1 I have two B4XImageView1 with diffenet names and tags and equal Event Names - added from designer... As i sad on every of them i set "Event Name" - to be the same...Let say - ImageView. My task is to find witch B4XImageView1 user clicked by receiving its tag... I can't explain this better...Sorry friends. Attachments 1676023067690.png 11 KB · Views: 365
I have two B4XImageView1 with diffenet names and tags and equal Event Names - added from designer... As i sad on every of them i set "Event Name" - to be the same...Let say - ImageView. My task is to find witch B4XImageView1 user clicked by receiving its tag... I can't explain this better...Sorry friends.
josejad Expert Licensed User Longtime User Feb 10, 2023 #2 Check the sender object Sender As ObjectReturns the object that raised the event. Only valid while inside the event sub. Example: Code: Copy Sub Button_Click Dim b As Button b = Sender b.Text = "I've been clicked" End Sub Upvote 0
Check the sender object Sender As ObjectReturns the object that raised the event. Only valid while inside the event sub. Example: Code: Copy Sub Button_Click Dim b As Button b = Sender b.Text = "I've been clicked" End Sub
M Mahares Expert Licensed User Longtime User Feb 10, 2023 #3 cenyu said: My task is to find witch B4XImageView1 user clicked by receiving its tag... Click to expand... B4XImageView does not have a click event. You can use a transparent panel over top of each and use their click events. See this thread. My post there has some code to help you https://www.b4x.com/android/forum/threads/b4ximageview-click-event.128040/ Upvote 1
cenyu said: My task is to find witch B4XImageView1 user clicked by receiving its tag... Click to expand... B4XImageView does not have a click event. You can use a transparent panel over top of each and use their click events. See this thread. My post there has some code to help you https://www.b4x.com/android/forum/threads/b4ximageview-click-event.128040/
cenyu Active Member Licensed User Longtime User Feb 10, 2023 #4 Mahares said: B4XImageView does not have a click event. You can use a transparent panel over top of each and use their click events. See this thread. My post there has some code to help you https://www.b4x.com/android/forum/threads/b4ximageview-click-event.128040/ Click to expand... Perfect! Thank you. This is what I looking for. Upvote 0
Mahares said: B4XImageView does not have a click event. You can use a transparent panel over top of each and use their click events. See this thread. My post there has some code to help you https://www.b4x.com/android/forum/threads/b4ximageview-click-event.128040/ Click to expand... Perfect! Thank you. This is what I looking for.