Dr. Evil Posted July 31, 2015 Share Posted July 31, 2015 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. Link to comment Share on other sites More sharing options...
Mark Scott Posted August 12, 2015 Share Posted August 12, 2015 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 1 Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 3181 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now