N Nicolás Cieri Active Member Licensed User Nov 1, 2019 #1 Hi, I'm trying to add a tabbaritem with icon from fontawesome and it is working good. But i need to add also a text.. icon with a simple text. B4X: tbi1.Initialize(Chr(0xF1D7),Null,Null) tbi1.SetFont(Font.CreateNew2("FontAwesome", 35)) tbi1.SetTitleOffset(0, 0) pg.TabBarItem = tbi1
Hi, I'm trying to add a tabbaritem with icon from fontawesome and it is working good. But i need to add also a text.. icon with a simple text. B4X: tbi1.Initialize(Chr(0xF1D7),Null,Null) tbi1.SetFont(Font.CreateNew2("FontAwesome", 35)) tbi1.SetTitleOffset(0, 0) pg.TabBarItem = tbi1
Semen Matusovskiy Well-Known Member Licensed User Nov 2, 2019 #2 Your "icon" is not a bitmap. If you do not want to make png files, you can use a function, which converts a text to bitmap. A sample is attached. Attachments ThreePages.zip 114.1 KB · Views: 497 Upvote 0
Your "icon" is not a bitmap. If you do not want to make png files, you can use a function, which converts a text to bitmap. A sample is attached.
Erel B4X founder Staff member Licensed User Longtime User Nov 3, 2019 #3 Try it with: B4X: tbi1.Initialize(Chr(0xF1D7) & " abcde",Null,Null) Upvote 0
N Nicolás Cieri Active Member Licensed User Nov 7, 2019 #4 I had tried that, but it makes the text too big, because of the size required for the icon. It would be to put a text with different sources, but I don't know if it's possible. Upvote 0
I had tried that, but it makes the text too big, because of the size required for the icon. It would be to put a text with different sources, but I don't know if it's possible.