Jump to content
Server Maintenance This Week. ×

Really simple request, on/off cycle button


Morenomdz

This topic is 3278 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Need a way to open and close the popover on the same button, I have a popover button hidden, and a button set to "go to popover" object, but I want that exact same button to close the popover as well?

Pretty sure it is very simple, just not comming to mind right now. Thanks!!!!

Link to comment
Share on other sites

One way to do it is to create a script that sets a global variable to the state the popover was last in and have an if statement built around it.

My method breaks if you click something other than the button because that action closes the popover without setting the global. The user would then have to click the button twice to open the popover.

popover.fmp12

  • Like 1
Link to comment
Share on other sites

My method breaks if you click something other than the button because that action closes the popover without setting the global. The user would then have to click the button twice to open the popover.

​So employ the OnObjectExit trigger with the tab panel.

 

popover_eosMOD.fmp12.zip

  • Like 1
Link to comment
Share on other sites

It almost worked, on the very last step under the last if it halts the script, that is causing me problems as I have navigation buttons inside the popover, it wont navigate if the halt script is there. It worked but bugged if I changed halt to pause as it would keep the system pausing.

If halt script is the last step when closing it wont let me navigate, ideas?

Link to comment
Share on other sites

This topic is 3278 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.