jinyistudio Well-Known Member Licensed User Longtime User Apr 10, 2017 #1 Hi How to change abmlabel font size as abminput's small title !?
Cableguy Expert Licensed User Longtime User Apr 10, 2017 #2 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
You change it using the label theme! The demo source code is a treasure chest for common code examples! Check the ABMShared buildheader sub...
stanmiller Active Member Licensed User Longtime User Apr 10, 2017 #3 jinyistudio said: Hi How to change abmlabel font size as abminput's small title !? Click to expand... 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: Apr 10, 2017 Upvote 0
jinyistudio said: Hi How to change abmlabel font size as abminput's small title !? Click to expand... 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.