S samperizal Active Member Licensed User Longtime User Dec 13, 2011 #1 Greetings. You can create a label in which the text scroll. Example ticker thanks
nfordbscndrd Well-Known Member Licensed User Longtime User Dec 14, 2011 #2 I assume you are asking how to scroll text in a label(?). You can use a timer with a pointer to the starting position of the text in the label. Example: Code: txt = "This is text to scroll in a Label. " txtStart = 0 Sub Timer1_Tick If txtStart < txt.Length then txtStart = txtStart + 1 Else txtStart = 0 end if Label1.Text = txt.SubString(txtStart) & txt End Sub The above code is not ready to run; it's just to get the idea across. You need to set up the variables and the timer, etc. Upvote 0
I assume you are asking how to scroll text in a label(?). You can use a timer with a pointer to the starting position of the text in the label. Example: Code: txt = "This is text to scroll in a Label. " txtStart = 0 Sub Timer1_Tick If txtStart < txt.Length then txtStart = txtStart + 1 Else txtStart = 0 end if Label1.Text = txt.SubString(txtStart) & txt End Sub The above code is not ready to run; it's just to get the idea across. You need to set up the variables and the timer, etc.
Erel B4X founder Staff member Licensed User Longtime User Dec 14, 2011 #3 See this thread: http://www.b4x.com/forum/basic4android-updates-questions/8831-scrolling-labels.html#post49199 Upvote 0
See this thread: http://www.b4x.com/forum/basic4android-updates-questions/8831-scrolling-labels.html#post49199