Edit
===
It was BBCodeView that does not display correctly, don't know if this is related on B4XPages or not, probably not.
Have 3 pages, page1 and page2 and pageHelp.
Page1 call
B4XPages.ShowPage("pageHelp")
pageHelp.ShowHelp("InfoAbout")
then after pageHelp showed up scroll to the bottom, close this page, immediately call page2 then call
B4XPages.ShowPage("pageHelp")
pageHelp.ShowHelp("Company")
pageHelp showed up but not correctly, see attachment picture.
If pageHelp not scrolled after called by page1, subsequent call to pageHelp from page2 display correctly.
BBHelp in page1 is a lot longer and lots picture than in page2.
Codes on pageHelp
Sub Class_Globals
Private Root As B4XView 'ignore
Private BBHelp As BBCodeView
Private TextEngine As BCTextEngine
Private lblLoc2 As Label
Private MaxWidth As Float
Private xui As XUI
Private pnlTitle As Panel
End Sub
'You can add more parameters here.
Public Sub Initialize As Object
Return Me
End Sub
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("lyHelp")
lblLoc2.Text = Main.PUB_CMPNY_NM
TextEngine.Initialize(Root)
BBHelp.ParseData.DefaultFont = xui.CreateDefaultFont(Main.PUB_FONT_SIZE)
MaxWidth = 100%x/GetDeviceLayoutValues.Scale-10dip
End Sub
Sub ShowHelp(Module As String)
If Module = "Company" Then
BBHelp.Text = $"...."$
else If Module = "InfoAbout" Then
BBHelp.Text = $"...."$
else If Module = "Hardware" Then
BBHelp.Text = $"...."$
End If
End Sub
On page2, after that strange display, close pageHelp, then call it again, it will display correctly.
Seem like BBCodeview need a time to refresh, don't know what.
It was always like that, a call to pageHelp on page2 after pageHelp called and scrolled, produced same result.