iOS Question Is it possible to get and set TextFields font size ?

MitchBu

Well-Known Member
Licensed User
Longtime User
I understand I can get a TextField font size with TextField.Font.Size.

However, how would I go to keep the same font and change only its size ?

TIA
 

klaus

Expert
Licensed User
Longtime User
TextField.Font.Size is read only.
You need to create a new font with either Font.CreateNew(MyTextSize), default font, or Font.CreateNew2(MyFontName, MyTextSize).
Or use the iXUI library and define the TextField as a B4XView and set TextFied.TextSize = MyTextSize
 
Upvote 0

MitchBu

Well-Known Member
Licensed User
Longtime User

Super. That is what I needed

Thank you klaus !
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…