Dr. Evil Posted October 19, 2020 Posted October 19, 2020 Curious if there is a solution to this problem I'm having.... I would prefer to use a Button Bar over a standard Button. But, a Button Bar has an Active State that holds hierarchy over Hover State, which makes the Dial Up/Down Button in the attached sample file "appear" to not work correctly. Is is possible to somehow override the Active State so Hover State works properly? Thank you for any help! 😃 sample_button_bar.fmp12
comment Posted October 19, 2020 Posted October 19, 2020 9 minutes ago, Dr. Evil said: a Button Bar has an Active State that holds hierarchy over Hover State The simplest solution I was able to come up with is to define the active segment as "" and refresh the button bar object after each button click. 1
LaRetta Posted October 19, 2020 Posted October 19, 2020 Hi Randy! Yes, a single script with script parameter on each button followed by refresh object works well. Nice to see you around again! 🙂
Dr. Evil Posted October 19, 2020 Author Posted October 19, 2020 Comment... are you talking about adding a 3rd blank segment to the button bar? And also, how would I script defining this blank segment as active? Thank you very much for your help! LaRetta... 🤩 fantastic to hear from you!!! So nice to run into you here, whats good, how ya been!?! I read your message and was excited that it may be an easy fix, but I've tried to simply refresh object, and it is not working for me, maybe I've overlooked something? For sake of overly covering myself, I added a refresh object for every element of the button bar, still no luck. Updated sample file with script attached. sample_button_bar_02.fmp12
comment Posted October 19, 2020 Posted October 19, 2020 5 minutes ago, Dr. Evil said: are you talking about adding a 3rd blank segment to the button bar? No, I am talking about defining the active segment of the button bar:
LaRetta Posted October 19, 2020 Posted October 19, 2020 (edited) And here's your file sample_button_barMOD.fmp12 added ... your latest script would probably work also but I think you can see how it works now (and only one refresh object[] needed). By the way, I really like how you provide a sample file and clear explanation of your need for those assisting you. It shows you respect the time of those who contribute here. 🙂 Edited October 19, 2020 by LaRetta added comment
Dr. Evil Posted October 19, 2020 Author Posted October 19, 2020 Ah, I failed to notice that "Specify" was an option, blindly was looking at None / segments. LOL, for a second there, I noticed that LaRetta's file worked (of course), but did not know HOW it was working. Right on!... this little trick will be so handy! So happy to have the power of a Button Bar as an option!!! THANK YOU ALL VERY MUCH!!!
Dr. Evil Posted October 20, 2020 Author Posted October 20, 2020 Now with the ability to use a Button Bar, wanted to make use of the [ Hide Object ] feature and make a cool check box toggle. I've accomplished this, and it works great when activated by 'mouse click', but FAILS when tabbed into and activated via 'key command', aka enter, or spacebar. Strangely, if you turn OFF the hide object feature, that key command works. Somehow a conflict is happening with hide object is involved, and I can not seem to resolve it. I need the script to toggle true, and then return to itself so that user can simply hit the return/spacebar key to continue to toggle back and for, then when ready, hit the tab key to move on to data entry. Thank you for your interest and any help! 😃 sample_button_bar_03.fmp12
Dr. Evil Posted October 21, 2020 Author Posted October 21, 2020 (edited) I've attached a 'workaround' file (bummer I could not get the original button bar to work). The Button Bar behaves differently somehow with the combination of being tabbed into, and hidden segments. I've exhausted myself trying to solve this issue to the best of my ability, maybe a FMP bug, I dunno. So I have resorted to going back to using a standard button stacked underneath the Button Bar. The button bar is now inert with the function of only storing / displaying icons. sample_button_bar_04.fmp12 Edited October 21, 2020 by Dr. Evil
Recommended Posts
This topic is 1492 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