Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

How to create a simple "go back" button


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

Recommended Posts

Posted

Store the name of the layout you started on in a global when you execute the script to go to info about this car. Program the "back" button to go to layout by calculation, and use the global you stored in that calc.

Or go to the info layout, pause the script and make the back button a continue script that uses go to layout "original layout"

Hope this helps,

Dana

Posted

Hi /P

If you script navigation between layouts (i.e. do NOT use the layout popup menu in the statusbar) then you could keep track of all the windows you visit by adding an extra script step to each navigation script that appends the new layout's number + a carriage return to a global text field.

You het the number of the current layout with the Get(Current layoutnumber) function.

The back button would then trigger a script that takes the last value of this list and does a Goto Layout (number by calculation) to take you back to the previously visted layout. The script would then have to remove the last entry from the list in the global field.

And if you succeed in getting this to work then you could also start thinking about a 'Forward' button!

Happy scripting from,

Ernst.

Posted

Ernst's technique is probably alot more complete than either of my suggestions. Mine only allow you to go back one step. One drawback of the pause technique is that the when the user is in a paused script, several menu commands are inactivated.

Posted

Hi again Reed!

I still have one question about this "pause technique"

I now noticed that when I press the button "info about this car" and then press my new "BACK" button, I

Posted

Format your button to "Halt" the currently running script, I'm not sure what that would be in the swedish version.

This topic is 7494 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.