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

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

Recommended Posts

Posted

Hi-

I've written a script that will 1) send a user to another layout or 2) cancel the script. That portion of my script works, but if the user clicks on the "x" at the top right corner of the message window they are sent to the other layout. What I would like to happen is if they click on the "x" then the message and script are canceled. Is this possible?

Thanks in advance for the help.

Posted

Sounds to me like you're working in Windows (the Mac version doesn't have that "x"). Perhaps (and I mean "perhaps", 'cause being a Mac guy myself I rarely deal with silly Windows problems) setting AllowUserAbort to off might get rid of that "x" -- of course, you would still be able to use a choice in the message box to exit the script.

Posted

he he, silly windows problems. well i dont deal with windows either, but i am pretty sure that clicking that "x" in the upper right hand corner of the window is the same as trapping for 1 in your script. is your default answer (wich has the code of 1) the go to layout script? when i make my dialoge boxes i usualy make cancel my default answer. that way if someone on Windows clocks the "x" close box, it just cancels the script.

on the other hand you could get a plugin that will disable that close box if it is that much of an issue. or just re-arrange your messege box choices.

i am pretty sure that putting AllowUserAbout [off] does not hide that "x" in the corner, but you should still have AllowUserAbout [off] so (on Windows) they cannot hit the escape key to dismiss the dialog box.

Posted

Thanks for the help. I changed my default option to exit the script, which has solved my problem.

I am wondering about the AllowUserAbort function, though. I set it to "off"in my script, but when I hit the esc key the message box still disappears. Is this not suppose to happen.

Posted

thats what i thought. at leaste that is what i have read, allow user abort [off] prevented using escape key on windows. i have never had to deal with it tho, since escape on mac does not cancel the message box. thats a good question, i wonder now myself, what prevents people from canceling a message box with the escape key?

Posted

Your solution to fix this problem was correct, dee2dum. The default - or messagechoice =1 is also the "X" in Windows. reversing your message buttons is the way to fix this. It also (for both platforms) makes it a little harder for your users to dismiss (hit enter or the X) the message.

As to the Allow User Abort (Off) on Windows: It will stop the user from hitting "esc" and canceling the action in MOST instances. One of the exceptions is the Show Message step. The "esc" key is the same as clicking the "X" in the window. I'm not positive, but I think you could trap for the "esc" key with Status ( CurrentModifierKeys ) in a calculation script step.

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