B Branko Milosevic Active Member Licensed User May 3, 2017 #1 I have a button embedded in CLV cell. It captures button_press event but I wasn't able to find indexoff the CLV item the button of which was pressed. Button is created in the designer. Do I need to programatically create the button instead so to be able to create a separate instance of the button for each item and assign the button.tag Any help is very welcome.
I have a button embedded in CLV cell. It captures button_press event but I wasn't able to find indexoff the CLV item the button of which was pressed. Button is created in the designer. Do I need to programatically create the button instead so to be able to create a separate instance of the button for each item and assign the button.tag Any help is very welcome.
B Branko Milosevic Active Member Licensed User May 4, 2017 #2 OK it's solved. At the bottom of the class, GetItemFromView(v as view) Code: Copy Private CLV as CustomListView Private Button1 as Button ' generated by designer Sub Button1_Click() Dim index As Int index=CLV.GetItemFromView(Sender) Log(index) End Sub Upvote 0
OK it's solved. At the bottom of the class, GetItemFromView(v as view) Code: Copy Private CLV as CustomListView Private Button1 as Button ' generated by designer Sub Button1_Click() Dim index As Int index=CLV.GetItemFromView(Sender) Log(index) End Sub