问题
I am writing a skin for a TextInput
control, and I want it to change when the fontSize
style changes dynamically. I see this is done in the default TextInputSkin
but couldn't decipher the behavior form the code.
How is this done?
thanks,
回答1:
override fontSize
setter, and dispatch a CHANGE event there.
来源:https://stackoverflow.com/questions/3692094/how-can-i-catch-the-fontsize-change-event