B4J Question Label with icon + text

peacemaker

Expert
Licensed User
Longtime User
HI, All

What is actual B4XPage solution to make labels with icons ?
I have found that Windows7 versions support unicode symbols differently - some Win7 shows FONTAWESOME symbols, but some - not (in the same my app).
Sure, Win8+ has no this problem, but ... any universal solution ?

Or at least for B4J ?
 

peacemaker

Expert
Licensed User
Longtime User
Thanks, Aeric.
But what about the topic question - any solution now for other icons in the label text (excepting unicode symbols) ?
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
I have no issue displaying Chinese character in my B4J desktop app but I never tested it on older version of Windows.
Can your upload a sample project?

BTW, have you checked on CSBuilder?
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
CSbuilder is super under Android, so can be used in B4J also ?!
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
But how to declare\init CSBuilder in B4J ?
 
Upvote 0

Magma

Expert
Licensed User
Longtime User
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Hmm, so, i was asking about ... BBLabel ! Any image can be placed together with a text.

Just to add _LinkClicked event into BBLabel - and it will be super...
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
[B4X] BCTextEngine / BBCodeView - Text engine + BBCode parser + Rich Text View
Be open minded. This is a cross platform library with several features: - Text drawing engine. - Text layout engine. - BBCode parser. - Two custom views that connect everything: BBCodeView - multiline, scrollable with support for embedded views. BBLabel - lightweight label. - NEW...
www.b4x.com
www.b4x.com

OK, thanks, SOLVED: we have to be really open minded, as Erel told: i have prepared BBLabelPro (that is with possibility to set RichStrings and icons), with Click and LongClick events, Enabled, Color property :)
It can be included into BCTextEngine.b4xlib.
 

Attachments

  • BBLabelPro.bas
    4.3 KB · Views: 95
  • BCTextExample+BBLabelPro.zip
    19.5 KB · Views: 89
Last edited:
Upvote 0

aeric

Expert
Licensed User
Longtime User
Might as well check this post:
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Might as well check this post:
It looks like really simplest and universal solution (with fixed icons set), thanks for idea, Aeric !
But if we need 2 fonts of different sizes.... is font file ... twice loaded fully into RAM ?!
 
Upvote 0
Top