German Buchmuller Member Licensed User Longtime User Apr 3, 2019 #1 Hi, I have a custmolistview that shows a list from a txt file. When I click an Item, I want to change its color to a different one from the other items from the list. Can someone tell me how can I do this? Thanks
Hi, I have a custmolistview that shows a list from a txt file. When I click an Item, I want to change its color to a different one from the other items from the list. Can someone tell me how can I do this? Thanks
Erel B4X founder Staff member Licensed User Longtime User Apr 3, 2019 #2 Are you adding the items with clv.AddTextItem? Upvote 0
German Buchmuller Member Licensed User Longtime User Apr 3, 2019 #3 Erel said: Are you adding the items with clv.AddTextItem? Click to expand... Yes Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 3, 2019 #4 This means that each item is made of a single label: B4X: Sub clv1_ItemClick (Index As Int, Value As Object) clv1.GetPanel(Index).GetView(0).TextColor = xui.Color_Red End Sub Upvote 0
This means that each item is made of a single label: B4X: Sub clv1_ItemClick (Index As Int, Value As Object) clv1.GetPanel(Index).GetView(0).TextColor = xui.Color_Red End Sub
German Buchmuller Member Licensed User Longtime User Apr 3, 2019 #5 Erel said: This means that each item is made of a single label: B4X: Sub clv1_ItemClick (Index As Int, Value As Object) clv1.GetPanel(Index).GetView(0).TextColor = xui.Color_Red End Sub Click to expand... Thanks! Upvote 0
Erel said: This means that each item is made of a single label: B4X: Sub clv1_ItemClick (Index As Int, Value As Object) clv1.GetPanel(Index).GetView(0).TextColor = xui.Color_Red End Sub Click to expand... Thanks!