iOS Question BCTextEngine (BBLabel) (SOLVED)

walterf25

Expert
Licensed User
Longtime User
How can I use BBLabel in B4i, is it possible to use it by itself?

I need to be able to control the padding property of the labels but I see that it is not possible in B4i, is there any other alternatives, at the moment the text inside the labels are too close to both edges and the text just doesn't look right, can BBLabel be used instead?

Walter
 

walterf25

Expert
Licensed User
Longtime User
Exactly like done in B4A and B4J.

Add the labels with the designer and call TextEngine.Initialize(Page.RootPanel) after you load the layout.
Interesting, I thought I had tried that, I'll give it another shot.

Thanks
Walter
 
Upvote 0

walterf25

Expert
Licensed User
Longtime User
Exactly like done in B4A and B4J.

Add the labels with the designer and call TextEngine.Initialize(Page.RootPanel) after you load the layout.

I gave it another shot, and I can set all the properties of the BBLabel but i'm not able to see the text, i can set the background color, border color etc. If I log the text assigned to it, I can see it in the Logs, but physically i don't see the text on it.

This is how i'm setting the text to it:
BBLabel:
DragViewPanelLabel.Text = $"[color=0xff006688][TextSize=17]${Text}[/color][/TextSize]"$

And I'am initializing the BCTextEngine at the beginning.

Any ideas?

Walter
 
Upvote 0
Top