-
October 18th, 2020, 23:13 #1
- Join Date
- Jan 2020
- Posts
- 222
Set formattedtextfield font programatically?
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.
-
October 18th, 2020, 23:52 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,539
You cannot. Formatted text field font definitions can only be done in the XML.
Regards,
JPG
-
October 19th, 2020, 00:22 #3
- Join Date
- Jan 2020
- Posts
- 222
I guess place an invisible one with a different font def and switch.
Thanks.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks