Android Question [SOLVED] How to scroll BBCodeView to first line?

incendio

Well-Known Member
Licensed User
Longtime User
Hi guys,

I have a BBCodeView in B4XPages that has lines more than screen size.
B4X:
Sub Class_Globals
   Private BBHelp As BBCodeView
   Private TextEngine As BCTextEngine
End Sub

Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    Root.LoadLayout("lyHelp")
    TextEngine.Initialize(Root)
End Sub

Sub ShowHelp(Module As String)
    B4XPages.ShowPage("pageHelp")
    
    if Module = "mod1" than
        BBHelp.Text = "mod1 help ............"
    else if Module = "mod2" than
        BBHelp.Text = "mod2 help ............"
    end if
End Sub

When users scroll that BBCodeView until last line, is there a command to scroll back BBCodeView to the first line?
 
Top