avacondios Active Member Licensed User Longtime User Jul 24, 2014 #1 Is it possible for StdActionbar buttons, to add a Tag property on these ? I am creating on running mode and I want to have a key for the Click event. Until now, I am using the following code to get the title of them, but I prefer to have a Tag, rather using the Title property.. Code: Copy Sub StdAB_Click Dim btn as Object = Sender if btn = "title 1" then ..... else ..... end if end sub
Is it possible for StdActionbar buttons, to add a Tag property on these ? I am creating on running mode and I want to have a key for the Click event. Until now, I am using the following code to get the title of them, but I prefer to have a Tag, rather using the Title property.. Code: Copy Sub StdAB_Click Dim btn as Object = Sender if btn = "title 1" then ..... else ..... end if end sub
Erel B4X founder Staff member Licensed User Longtime User Jul 24, 2014 #2 Not sure that I understand. Which buttons are you referring to? Upvote 0
avacondios Active Member Licensed User Longtime User Jul 24, 2014 #3 I mean the menu buttons on STDActionbar. I have added with the following code : StdActionBar.AddMenu("title" ,"StdAB") Upvote 0
I mean the menu buttons on STDActionbar. I have added with the following code : StdActionBar.AddMenu("title" ,"StdAB")
Erel B4X founder Staff member Licensed User Longtime User Jul 24, 2014 #4 I see. You are using the extended library. You can use a Map to map between the strings and any other object you need (instead of the Tag). Upvote 0
I see. You are using the extended library. You can use a Map to map between the strings and any other object you need (instead of the Tag).