B4J Question [ABMaterial] how to change ABMlabel font size

jinyistudio

Well-Known Member
Licensed User
Longtime User
Hi

How to change abmlabel font size as abminput's small title !?

e1788b6c8490c1779463e9be868ad7cf.png
 

Cableguy

Expert
Licensed User
Longtime User
You change it using the label theme!
The demo source code is a treasure chest for common code examples!
Check the ABMShared buildheader sub...
 
Upvote 0

stanmiller

Active Member
Licensed User
Longtime User
Hi
How to change abmlabel font size as abminput's small title !?

You can set the initial ABMLabel font size with the ABM.SIZE constants ( ABM.SIZE_H1, ABM.SIZE_PARAGRAPH, etc. ) through the Initialize method.

To make further adjustments use the FontSize() method. The fontsize parameter is a string specified in pixels, percentage, or em's.

Ex.

lbl.FontSize("44px")
lbl.FontSize("200%")
lbl.FontSize("2em" )

B4X:
Dim lbl as ABMLabel
lbl.Initialize(page, "mylbl", "Subheader", ABM.SIZE_H2, False, "" )
lbl.Fontsize("200%")

Not sure how to do the same with ABMInput.
 
Last edited:
Upvote 0
Top