PDA

View Full Version : Set formattedtextfield font programatically?



zuilin
October 18th, 2020, 23:13
I have set the <normal> font of my formattedtextfield in the XML and now I'd like to change it to a different font programatically, based on some conditions.

I can't figure out how to set the font on this control. .setFont() doesn't exist. I can't seem to reference the font property using any kind of dot notation.

How do I set the formattedtextfield font programatically?

Thanks.

Moon Wizard
October 18th, 2020, 23:52
You cannot. Formatted text field font definitions can only be done in the XML.

Regards,
JPG

zuilin
October 19th, 2020, 00:22
I guess place an invisible one with a different font def and switch.

Thanks.