Can't set textFont of char 1 of a button label?
Posted: Mon Jun 27, 2016 12:15 pm
Hello, everyone!
I am trying to set the font of the first character of a button label to a different font than the rest of the label text. I keep throwing errors (can't set this property, error in object expression, etc.) when trying combinations to get this to work.
Here is what I am using:
This throws an error in object expression.
This throws an error in setting this property.
Is it possible to set the first character of a button label to a different font than the rest of the label text?
If so, could someone please point me in the right direction?
I would greatly appreciate it!
I am trying to set the font of the first character of a button label to a different font than the rest of the label text. I keep throwing errors (can't set this property, error in object expression, etc.) when trying combinations to get this to work.
Here is what I am using:
Code: Select all
set the textFont of char 1 of label of button "myButton" to "myFont"
Code: Select all
set the textFont of button "myButton" to "myFont"
Is it possible to set the first character of a button label to a different font than the rest of the label text?
If so, could someone please point me in the right direction?
I would greatly appreciate it!