incendio Well-Known Member Licensed User Longtime User Jun 30, 2020 #1 Hi guys, I have codes like these B4X: Sub Globals Private BBHelp As BBCodeView Private TextEngine As BCTextEngine End Sub Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("lyHelp") TextEngine.Initialize(Activity) BBHelp.mBase.TextSize = 18 End Sub Got an error : java.lang.RuntimeException: Type does not match (class anywheresoftware.b4a.BALayout) How to set BBHelp text size via code?
Hi guys, I have codes like these B4X: Sub Globals Private BBHelp As BBCodeView Private TextEngine As BCTextEngine End Sub Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("lyHelp") TextEngine.Initialize(Activity) BBHelp.mBase.TextSize = 18 End Sub Got an error : java.lang.RuntimeException: Type does not match (class anywheresoftware.b4a.BALayout) How to set BBHelp text size via code?
Erel B4X founder Staff member Licensed User Longtime User Jun 30, 2020 #2 You can always set the text size in the bbcode: Code: BBHelp.Text = $"[TextSize=18]... [/TextSize]"$ Or: Code: BBHelp.ParseData.DefaultFont = xui.CreateDefaultFont(18) Upvote 0
You can always set the text size in the bbcode: Code: BBHelp.Text = $"[TextSize=18]... [/TextSize]"$ Or: Code: BBHelp.ParseData.DefaultFont = xui.CreateDefaultFont(18)