Confirm - Maple Help

Maplets[Examples]

 Confirm
 display a confirmation dialog Maplet application

 Calling Sequence Confirm(msg, opts)

Parameters

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

Description

 • 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.

Examples

 > $\mathrm{with}\left(\mathrm{Maplets}\left[\mathrm{Examples}\right]\right):$
 > $\mathrm{Confirm}\left("Close and return the result?",'\mathrm{type}'=\mathrm{question}\right)$