J John Sturt Active Member Licensed User Longtime User Mar 31, 2017 #1 Hello I have a scrollview defined in a layout file and a array of labels defined in code. I can only update the text in the first one. Any clues?
Hello I have a scrollview defined in a layout file and a array of labels defined in code. I can only update the text in the first one. Any clues?
klaus Expert Licensed User Longtime User Mar 31, 2017 #2 How do you fill the ScrollView? Are there other views on the ScrollView? You can get a view with ScrollView.Panel.GetView(Index). Upvote 0
How do you fill the ScrollView? Are there other views on the ScrollView? You can get a view with ScrollView.Panel.GetView(Index).
J John Sturt Active Member Licensed User Longtime User Mar 31, 2017 #3 I fill it by code A loop of index scrollview.panel.addview (Label(index),a,b,c,d) and their are no other views in the scrollview I cannot update the text in any label apart from the first one. I have enabled multiline. Upvote 0
I fill it by code A loop of index scrollview.panel.addview (Label(index),a,b,c,d) and their are no other views in the scrollview I cannot update the text in any label apart from the first one. I have enabled multiline.
klaus Expert Licensed User Longtime User Mar 31, 2017 #4 You should have shown us the code you use to fill the ScrollView. Where and how do you initialize the Labels? It seems that you are using an array of Labels. So you could do it with Label(Index).Text = "something" Or Private lbl As Label lbl = ScrollView.Panel.GetView(Index) lbl.Text = = "something" Upvote 0
You should have shown us the code you use to fill the ScrollView. Where and how do you initialize the Labels? It seems that you are using an array of Labels. So you could do it with Label(Index).Text = "something" Or Private lbl As Label lbl = ScrollView.Panel.GetView(Index) lbl.Text = = "something"
Erel B4X founder Staff member Licensed User Longtime User Apr 2, 2017 #5 Check CustomListView. It will probably be simpler. Upvote 0
J John Sturt Active Member Licensed User Longtime User Apr 3, 2017 #6 Many thanks to @klaus and @Erel Upvote 0