aaronk Well-Known Member Licensed User Longtime User Apr 25, 2018 #1 Hi, I am trying to use the ScrollingLabel in my B4A app. - https://www.b4x.com/android/forum/threads/b4x-xui-scrolling-label.85516/#content I am using the ULV and I have created a layout which contains a few labels, and a ScrollingLabel. I am able to select the standard label like: B4X: Dim lbl As Label = LayoutPanel.GetView(3) However, I can't seem to do the same with the ScrollingLabel. It comes up saying the types don't match. B4X: Dim myLabel As ScrollingLabel = LayoutPanel.GetView(4) I want to be able to select the ScrollingLabel as I need to dynamically update the text of the ScrollingLabel using the ULV at a later time.
Hi, I am trying to use the ScrollingLabel in my B4A app. - https://www.b4x.com/android/forum/threads/b4x-xui-scrolling-label.85516/#content I am using the ULV and I have created a layout which contains a few labels, and a ScrollingLabel. I am able to select the standard label like: B4X: Dim lbl As Label = LayoutPanel.GetView(3) However, I can't seem to do the same with the ScrollingLabel. It comes up saying the types don't match. B4X: Dim myLabel As ScrollingLabel = LayoutPanel.GetView(4) I want to be able to select the ScrollingLabel as I need to dynamically update the text of the ScrollingLabel using the ULV at a later time.
Erel B4X founder Staff member Licensed User Longtime User Apr 25, 2018 #2 The actual view that is added to the views tree is a panel. Luckily its Tag points to the class instance: B4X: 'from DesignerCreateView mBase.Tag = Me Your code should be: B4X: Dim myLabel As ScrollingLabel = LayoutPanel.GetView(4).Tag Upvote 0
The actual view that is added to the views tree is a panel. Luckily its Tag points to the class instance: B4X: 'from DesignerCreateView mBase.Tag = Me Your code should be: B4X: Dim myLabel As ScrollingLabel = LayoutPanel.GetView(4).Tag
aaronk Well-Known Member Licensed User Longtime User Apr 25, 2018 #3 That worked! However, it seems to keep scrolling until it gets to the start again. I was hoping it would scroll to the end and then scroll back to the start again. Upvote 0
That worked! However, it seems to keep scrolling until it gets to the start again. I was hoping it would scroll to the end and then scroll back to the start again.