B4J Question ABMaterail Change Text Properties of Text NOT in ABMLabel

mmieher

Active Member
Licensed User
Longtime User
Noob here.

How to change, SIZE, STYLE, COLOR, FONT of anything in a line like the following?
(from demo project -- main event slider in middle of page)

B4X:
    slider.AddSlideImage("../images/vintage-women-soft-tits.png?" & DateTime.Now, "Looking for tits?","Pornography is not the purpose of this site.", ABM.IMAGESLIDER_CENTER)

I see how to change the "myslider" theme, however, I potentially want to change text properties on individual slides -- not the whole enchilada.

Pretty sure I have looked at every post containing "ABMaterial". Also every page at the ABMaterial site. Lets not forget almost every B4J line in ABMExtras.

I am probably missing another BIG TOOL, DOC REPOSITORY, or whatever. Help me, @alwaysbusy , you are my only hope.
 

MichalK73

Well-Known Member
Licensed User
Longtime User
You can use BB Code.
Demo editor BB CODE

For example:
[ B ]example text [ /B ] - bold text
[ I ]example text [/c] [ /I] - italic text
[ B ][ I ]example text [ /B ][ /I ] - bold and italic text
I set color [C:#number_color] text [/C] - color text
 
Last edited:
Upvote 0

alwaysbusy

Expert
Licensed User
Longtime User
In ABMaterial and BANano, the formatting codes are:

B4X:
{B} and {/B}       Bold
{I} and {/I}       Italic
{U} and {/U}       Underlined
{SUB} and {/SUB}   Subscript
{SUP} and {/SUP}   Superscript
{BR}               Line Break
{NBSP}               Non breakable space
{AL}{AT}{/AL}       Hyperlink e.g. {AL}http://alwaysbusyscorner.com{AT}Alwaysbusy's Corner{/AL}
{CODE}{/CODE}: creates a simple code box (no syntax highlighting). {CODE} tags do not play well with ABM.SIZE_PARAGRAPH!
{ST:xxxx}{/ST}: Very powerful tag where you can use about any style code.  Caution: this is a heavy tag, as it writes inline styling span tags.  It is always faster to use the default ABMaterial themes, but in some cases this can come in handy to make a special formatting.  Good knowledge of styling is required.
{WBR} tags allows one to have content side-by-side then wrap when the browser window shrinks.
{C:#ff0000} and {/C} color in RGB format
{IC:#ff0000}3d_rotation{/IC} will insert a red 3d_rotation icon in the text
 
Upvote 0

mmieher

Active Member
Licensed User
Longtime User
In ABMaterial and BANano, the formatting codes are:

B4X:
{B} and {/B}       Bold
{I} and {/I}       Italic
{U} and {/U}       Underlined
{SUB} and {/SUB}   Subscript
{SUP} and {/SUP}   Superscript
{BR}               Line Break
{NBSP}               Non breakable space
{AL}{AT}{/AL}       Hyperlink e.g. {AL}http://alwaysbusyscorner.com{AT}Alwaysbusy's Corner{/AL}
{CODE}{/CODE}: creates a simple code box (no syntax highlighting). {CODE} tags do not play well with ABM.SIZE_PARAGRAPH!
{ST:xxxx}{/ST}: Very powerful tag where you can use about any style code.  Caution: this is a heavy tag, as it writes inline styling span tags.  It is always faster to use the default ABMaterial themes, but in some cases this can come in handy to make a special formatting.  Good knowledge of styling is required.
{WBR} tags allows one to have content side-by-side then wrap when the browser window shrinks.
{C:#ff0000} and {/C} color in RGB format
{IC:#ff0000}3d_rotation{/IC} will insert a red 3d_rotation icon in the text
Thank you, Alain.

http://prd.one-two.com:51042/demo/CompLabelPage/abmaterial-label.html?1490853835390 stops at {AL} which is what got me stuck on color. I will just live with size and minimize learning yet another thing too much {ST}. Squirrels are already an issue with me.
 
Upvote 0
Top