July 31, 201510 yr This is driving me a bit batty. I have a style set for my edit fields. Sometimes Ill attach a Script to an edit field. So I went ahead and assigned hover, pressed, and in focus states. I figured these states would be ignored if there is no button attached to object. But not the case! On a text object, not field. theres is no issue. Is there something i can do to fix this? I want to avoid making a nother style set, one normal and the other with button attributes.... this will double the amount of styles! Thanks for any help or suggestion.
August 12, 201510 yr Hey Dr. Evil, In your shoes, I'd probably just go ahead and create the separate edit box styles. Apply the basic one (i.e., sans state-specific effects) to your edit boxes, then when you want to attach a button action to an edit box, it's just a quick click in the Styles Inspector to switch it over. There's very little overhead to defining extra styles and saving them to your theme—certainly a lot less than not creating the styles and adding local-styling overrides to objects. That was a key message in some of the DevCon sessions in the past couple years. So that's how I'd handle it at least. Let us know if you come up with another approach. Options are good. hth, Mark
Create an account or sign in to comment