aaronk Well-Known Member Licensed User Longtime User Sep 18, 2024 #1 Hi, I am using BBLabels in my B4A app. I have a layout with a BBLabel, and have the Anchors set for each side of the screen. I have the BBLabel set for Vertical alignment set for 'top'. I then have a scrollview in a separate layout, and I loaded the layout, and then called the BBLabel layout in the scrollview. However the text seems to be in the middle. How can I assign the text to the top ? What I am trying to do is have text in the label, and some will be bold but if the text is too long then I want the user to be able to scroll down to read the rest of the text. Making it Bold etc is easy done, but if the customers phone is a small screen size, then I want to make it so the customer can scroll up and down manually to read the text. Similar to a terms and conditions. B4X: ScrollView.Panel.LoadLayout("layout_with_BBLabel") BBLabel1.Text = "message to show in [b]BBLabel[/b]"
Hi, I am using BBLabels in my B4A app. I have a layout with a BBLabel, and have the Anchors set for each side of the screen. I have the BBLabel set for Vertical alignment set for 'top'. I then have a scrollview in a separate layout, and I loaded the layout, and then called the BBLabel layout in the scrollview. However the text seems to be in the middle. How can I assign the text to the top ? What I am trying to do is have text in the label, and some will be bold but if the text is too long then I want the user to be able to scroll down to read the rest of the text. Making it Bold etc is easy done, but if the customers phone is a small screen size, then I want to make it so the customer can scroll up and down manually to read the text. Similar to a terms and conditions. B4X: ScrollView.Panel.LoadLayout("layout_with_BBLabel") BBLabel1.Text = "message to show in [b]BBLabel[/b]"
Erel B4X founder Staff member Licensed User Longtime User Sep 18, 2024 #2 Why use BBLabel for this? Use BBCodeView. It is scrollable and more powerful. Upvote 0
aaronk Well-Known Member Licensed User Longtime User Sep 19, 2024 #3 Erel said: Use BBCodeView Click to expand... Thanks, I managed to use BBCodeView and it works like how I want it to. Upvote 0
Erel said: Use BBCodeView Click to expand... Thanks, I managed to use BBCodeView and it works like how I want it to.