Run Dialog - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Maplets[Elements]

  

RunDialog

  

display a dialog

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

RunDialog(opts)

Parameters

opts

-

equation(s) of the form dialog=value; specify options for the RunDialog element

Description

• 

The RunDialog command element displays a dialog defined in the running Maplet application. To display a dialog defined in a different Maplet application, use the Display function.

• 

There are separate RunDialog and RunWindow command elements because the Window element is intrinsically different from the dialog elements. A dialog has a predefined structure. A Maplet application author can specify options for a dialog, but cannot add elements. A window does not have a predefined structure. A Maplet application author specifies its structure by using elements and options. Also they behave differently. For example, a window can be minimized.

• 

To simplify specifying options in the Maplets package, certain options and contents can be set without using an equation. The following table lists elements, symbols, and types (in the left column) and the corresponding option or content (in the right column) to which inputs of this type are, by default, assigned.

Elements, Symbols, or Types

Assumed Option or Content

 

 

name or string

dialog option

 

 

• 

A RunDialog element cannot contain other elements.

• 

A RunDialog element can be contained in a Maplet element; in an equation for the onapprove, oncancel, onchange, onclick, ondecline, or onstartup option for an element; or wrapped in an Action element as a parameter in an element that accepts an onchange or onclick option without an equation.

• 

The following table describes the control and use of the RunDialog element options.

  

An x in the I column indicates that the option can be initialized, that is, specified in the calling sequence (element definition).

  

An x in the R column indicates that the option is required in the calling sequence.

  

An x in the G column indicates that the option can be read, that is, retrieved by using the Get tool.

  

An x in the S column indicates that the option can be written, that is, set by using the SetOption element or the Set tool.

Option

I

R

G

S

 

 

 

 

 

dialog

x

x

 

 

 

 

 

 

 

• 

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

  

 

  

dialog = reference to a dialog element (name or string)

  

A reference to the dialog to run.

Examples

In this Maplet application, the RunDialog element starts a dialog in the same Maplet application.

withMapletsElements:

mapletMapletWindowTextFieldTF1,ButtonDifferentiate with respect to x,EvaluateTF1=diffTF1,x,ButtonHelp,RunDialogMD1,ButtonExit,ShutdownTF1,MessageDialogMD1See ?diff for help with the differentiation command:

MapletsDisplaymaplet

In this Maplet application, the Display function starts another Maplet application that contains a dialog.

withMapletsElements:

maplet1MapletWindowTextFieldTF1,ButtonDifferentiate with respect to x,EvaluateTF1=diffTF1,x,ButtonHelp,Evaluatefunction=MapletsDisplaymaplet2,ButtonExit,ShutdownTF1:

maplet2MapletMessageDialogSee ?diff for help with the differentiation command:

MapletsDisplaymaplet1

See Also

diff

Maplets/CommandElements

Maplets/DialogElements

Maplets[Display]

Maplets[Elements]

Maplets[Elements][Action]

Maplets[Elements][AlertDialog]

Maplets[Elements][Button]

Maplets[Elements][ColorDialog]

Maplets[Elements][ConfirmDialog]

Maplets[Elements][Evaluate]

Maplets[Elements][FileDialog]

Maplets[Elements][InputDialog]

Maplets[Elements][Maplet]

Maplets[Elements][MessageDialog]

Maplets[Elements][QuestionDialog]

Maplets[Elements][RunWindow]

Maplets[Elements][SetOption]

Maplets[Elements][Shutdown]

Maplets[Elements][TextField]

Maplets[Elements][Window]

Maplets[Tools][Get]

Maplets[Tools][Set]

Overview of Maplet Applications