Erel B4X founder Staff member Licensed User Longtime User Aug 16, 2020 #2 Yes, with CSBuilder. Code: Copy Dim cs As CSBuilder cs.Initialize.Size(20).Bold.Append("Is it p").BackgroundColor(xui.Color_Cyan).Append("oss").Pop.BackgroundColor(xui.Color_Red).Append("ible").PopAll Label1.Text = cs Upvote 0
Yes, with CSBuilder. Code: Copy Dim cs As CSBuilder cs.Initialize.Size(20).Bold.Append("Is it p").BackgroundColor(xui.Color_Cyan).Append("oss").Pop.BackgroundColor(xui.Color_Red).Append("ible").PopAll Label1.Text = cs
J Juan Perz Member Aug 16, 2020 #3 Thanks Erel. I wanted to do this same cross platform for B4A and B4J. Is this possible ? As I am afraid that the answer will be no, I have also posed the first question in the B4J forum, in order to be able to do it even if it is independently for each platform. Last edited: Aug 17, 2020 Upvote 0
Thanks Erel. I wanted to do this same cross platform for B4A and B4J. Is this possible ? As I am afraid that the answer will be no, I have also posed the first question in the B4J forum, in order to be able to do it even if it is independently for each platform.
Erel B4X founder Staff member Licensed User Longtime User Aug 17, 2020 #4 The cross platform way to create rich text is with BCTextEngine, however it doesn't support background colors (without some work). You can use CSBuilder in B4A and B4i. Example of adding background colors with BCTextEngine: https://www.b4x.com/android/forum/t...-piece-of-text-is-possible.120429/post-753015 Upvote 0
The cross platform way to create rich text is with BCTextEngine, however it doesn't support background colors (without some work). You can use CSBuilder in B4A and B4i. Example of adding background colors with BCTextEngine: https://www.b4x.com/android/forum/t...-piece-of-text-is-possible.120429/post-753015