BitsAndBytes Active Member Licensed User Mar 26, 2017 #1 I am using Costum List View 1.5. I add ItemClick Event from the Designer but how i can implement ItemLongClick Event? Thank you Last edited: Mar 26, 2017
I am using Costum List View 1.5. I add ItemClick Event from the Designer but how i can implement ItemLongClick Event? Thank you
Beja Expert Licensed User Longtime User Mar 26, 2017 #2 If the event is not exposed in designer the I doubt it work.. But just in case try to use it in code. Upvote 0
If the event is not exposed in designer the I doubt it work.. But just in case try to use it in code.
Erel B4X founder Staff member Licensed User Longtime User Mar 27, 2017 #3 See how Panel_Click is implemented in the class and implement Panel_LongClick. Upvote 0
BitsAndBytes Active Member Licensed User Mar 27, 2017 #4 but i dont understand why developer remove such usefull feature like this? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Mar 27, 2017 #5 I don't think that it was included in any previous version of CustomListView. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Mar 27, 2017 #7 You can find the source code here: https://www.b4x.com/search?query=CustomListView Upvote 0
BitsAndBytes Active Member Licensed User Mar 27, 2017 #8 Ok this is the most usefull thing from costum list view and its missing. I cant find even an example on the link Upvote 0
Ok this is the most usefull thing from costum list view and its missing. I cant find even an example on the link
DonManfred Expert Licensed User Longtime User Mar 27, 2017 #9 BitsAndBytes said: I cant find even an example on the link Click to expand... Noone told there is one. You got told Erel said: See how Panel_Click is implemented in the class and implement Panel_LongClick. Click to expand... Upvote 0
BitsAndBytes said: I cant find even an example on the link Click to expand... Noone told there is one. You got told Erel said: See how Panel_Click is implemented in the class and implement Panel_LongClick. Click to expand...
BitsAndBytes Active Member Licensed User Mar 27, 2017 #10 My problem is i am using the designer to add the CostumListView how i will implement Panel_LongClick? Upvote 0
My problem is i am using the designer to add the CostumListView how i will implement Panel_LongClick?
imbault Well-Known Member Licensed User Longtime User Mar 27, 2017 #11 Are you kidding? Have a look on CustomListView.bas : B4X: Private Sub Panel_Click If SubExists(CallBack, EventName & "_ItemClick") Then Dim v As View v = Sender CallSub3(CallBack, EventName & "_ItemClick", v.Tag, items.Get(v.Tag)) End If End Sub Upvote 0
Are you kidding? Have a look on CustomListView.bas : B4X: Private Sub Panel_Click If SubExists(CallBack, EventName & "_ItemClick") Then Dim v As View v = Sender CallSub3(CallBack, EventName & "_ItemClick", v.Tag, items.Get(v.Tag)) End If End Sub
eps Expert Licensed User Longtime User Mar 27, 2017 #12 ? Use the keyboard!! Type... Sub <Space> <Space> it then asks you to press <Tab> then type Panel then LongClick ETA : Then type the element name OR : In the Designer select the Panel and then go to Tools and Generate Members... That should create a LongClick Sub for you Upvote 0
? Use the keyboard!! Type... Sub <Space> <Space> it then asks you to press <Tab> then type Panel then LongClick ETA : Then type the element name OR : In the Designer select the Panel and then go to Tools and Generate Members... That should create a LongClick Sub for you
BitsAndBytes Active Member Licensed User Mar 27, 2017 #13 Ok thank you i solve it with your help Upvote 0