Message dialog abort?

I have a message dialog presented.
If the user does nothing, after 5 minutes (timer) I’d like to withdraw the dialog box and handle it as if he’d press cancel.
How can I abort the message dialog? (messagedialog.cancelbutton.push does not exist)

1 Like

Yes, in Applescript we have a parameter “giveup after x secondes” which is 240 (4 minutes) by default. As we have maximum 3 button, a 4th option as givenup would be welcome. But if Xojo implement this, I suppose and hope they will keep as it is by default (no giveup).

1 Like

You can emulate MsgBox with a modal window, where you can put a timer to close it after 5 minutes.

1 Like

in NSAlertMBS class in MBS Xojo Plugins we have a timeout property.

Forum for Xojo Programming Language and IDE. Copyright © 2021 Xojo, Inc.