Lucas Eduardo Active Member Licensed User Jun 8, 2020 #1 Hello, i'm using the lib BBScrollingLabel, but i could not change view background color. How can i change the view background color? Thank you. Attachments 1.png 14.1 KB · Views: 260 image0.png 61.1 KB · Views: 257
Hello, i'm using the lib BBScrollingLabel, but i could not change view background color. How can i change the view background color? Thank you.
Erel B4X founder Staff member Licensed User Longtime User Jun 8, 2020 #2 By mistake mBase is not exposed, so we need to do some work: 1. Put the BBScrollingLabel inside a panel. 2. B4X: BBScrollingLabel1.Text = $"[b][u]BBScrollingLabel[/u][/b]: [color=red]Red[/color] [color=0xFF08B31F]Green[/color] [color=blue]Blue[/color]. More information: [url]https://www.b4x.com[/url]..............."$ Sleep(0) LabelPanel.GetView(0).GetView(0).Color = xui.Color_Red Upvote 0
By mistake mBase is not exposed, so we need to do some work: 1. Put the BBScrollingLabel inside a panel. 2. B4X: BBScrollingLabel1.Text = $"[b][u]BBScrollingLabel[/u][/b]: [color=red]Red[/color] [color=0xFF08B31F]Green[/color] [color=blue]Blue[/color]. More information: [url]https://www.b4x.com[/url]..............."$ Sleep(0) LabelPanel.GetView(0).GetView(0).Color = xui.Color_Red
Lucas Eduardo Active Member Licensed User Jun 22, 2020 #3 I tryed it now and did not worked. I did it Erel said: 1. Put the BBScrollingLabel inside a panel. Click to expand... when i tryed this B4X: LabelPanel.GetView(0).GetView(0).Color = xui.Color_Red i can not do it ".GetView(0).GetView(0)" it just work if i put one time "GetView(0)" Why did not work? Thank you. Upvote 0
I tryed it now and did not worked. I did it Erel said: 1. Put the BBScrollingLabel inside a panel. Click to expand... when i tryed this B4X: LabelPanel.GetView(0).GetView(0).Color = xui.Color_Red i can not do it ".GetView(0).GetView(0)" it just work if i put one time "GetView(0)" Why did not work? Thank you.
Erel B4X founder Staff member Licensed User Longtime User Jun 23, 2020 #4 If you solved it with a single GetView then it is fine, if not then upload the project. Upvote 0
Lucas Eduardo Active Member Licensed User Jun 23, 2020 #5 I did not solve it. Here is the project uploaded. Attachments bbscrollinglabel.zip 169 KB · Views: 276 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 24, 2020 #6 You will never see a global Panel variable in new code of mine. Only B4XView. Easier to work with and cross platform. Change it to B4XView and change the code to: B4X: panel1.GetView(0).GetView(0).Color = Colors.Blue Upvote 0
You will never see a global Panel variable in new code of mine. Only B4XView. Easier to work with and cross platform. Change it to B4XView and change the code to: B4X: panel1.GetView(0).GetView(0).Color = Colors.Blue