Alberto Iglesias Well-Known Member Licensed User Longtime User Nov 15, 2019 #1 any way to change the size of text on B4i after creating? Dim lblLine As Label lblLine.Initialize("") lblLine.TextColor = SecondColor . <--- OK lblLine.TextSize = 20 <- is not exist
any way to change the size of text on B4i after creating? Dim lblLine As Label lblLine.Initialize("") lblLine.TextColor = SecondColor . <--- OK lblLine.TextSize = 20 <- is not exist
Brandsum Well-Known Member Licensed User Nov 15, 2019 #2 In B4I you have to set the text size using font property or you can use b4x view. B4X: Dim lblLine As Label lblLine.Initialize("") lblLine.TextColor = SecondColor Dim lx as b4xview = lblLine lx.TextSize = 20 Last edited: Nov 17, 2019 Upvote 0
In B4I you have to set the text size using font property or you can use b4x view. B4X: Dim lblLine As Label lblLine.Initialize("") lblLine.TextColor = SecondColor Dim lx as b4xview = lblLine lx.TextSize = 20
Erel B4X founder Staff member Licensed User Longtime User Nov 17, 2019 #3 Note that if AutoScaleAll is called in the layout file then the text size will be reset when the page is resized. You need to set it again in the Resize event (or remove the AutoScaleAll). Upvote 0
Note that if AutoScaleAll is called in the layout file then the text size will be reset when the page is resized. You need to set it again in the Resize event (or remove the AutoScaleAll).