display a confirmation dialog Maplet application - Maple Help

Online Help

All Products    Maple    MapleSim

Home : Support : Online Help : Programming : Maplets : Examples : Maplets/Examples/Confirm

Maplets[Examples][Confirm] - display a confirmation dialog Maplet application

Calling Sequence

Confirm(msg, opts)




string or symbol



equation(s) of the form option=value where option is one of title or type; specify options for the Maplet application



The Confirm(msg) calling sequence displays a Maplet application that requests a confirmation from the user.  The user can select one of Yes, No, or Cancel. The value returned is true, false, or FAIL, respectively.


The Confirm sample Maplet worksheet describes how to write a Maplet application that behaves similarly to this routine by using the Maplets[Elements] package.


The opts argument can contain one or more of the following equations that set Maplet application options.




title = string or symbol


Specifies the Maplet application title.  By default, the title is Confirmation.




type = `error`, plain, question, or warning


The confirmation type.  By default, plain.  This option determines the icon that is located left of the text.



ConfirmClose and return the result?,'type'=question

See Also

Confirm Sample Maplet, Maplets[Elements], Maplets[Elements][ConfirmDialog], Maplets[Examples], Overview of Maplet Applications

Download Help Document

Was this information helpful?

Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam