Android Question How to achieve the effect of running horse lights in B4A?

bskotu555

Active Member
I have some content: 1-1-F-40, 1-1-F-41... There will be many of them like this. How to achieve the effect of a running light in B4A, allowing scrolling from right to left?
 

teddybear

Well-Known Member
Licensed User
Do you mean the marquee effect?
See this
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Nothing special.

B4XMainPage:
Sub Class_Globals
    Private Root As B4XView
    Private xui As XUI
    Private BBScrollingLabel1 As BBScrollingLabel
    Private TextEngine As BCTextEngine
End Sub

Public Sub Initialize

End Sub

Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    Root.LoadLayout("1")
    TextEngine.Initialize(Root)
    BBScrollingLabel1.TextEngine = TextEngine
    BBScrollingLabel1.Text = $"[b][u]BBScrollingLabel[/u][/b]: [color=red]Red[/color] [color=0xFF08B31F]Green[/color] [color=blue]Blue[/color]. More information: [url]https://www.b4x.com[/url]..............."$
End Sub

Private Sub B4XPage_Appear
    'this is required in B4A only. It resumes the animation after the activity was paused.
    BBScrollingLabel1.Text = BBScrollingLabel1.Text
End Sub
 
Upvote 0
Top