Maplets[Elements] - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Maplets : Elements : Menu Elements : Maplets/Elements/PopupMenu

Maplets[Elements]

  

PopupMenu

  

define a popup menu

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

PopupMenu(opts, element_content)

PopupMenu[refID](opts, element_content)

Parameters

opts

-

equation(s) of the form option=value where option is one of reference or visible; specify options for the PopupMenu element

element_content

-

any number of Menu, MenuItem, or MenuSeparator elements; nested Menu elements create submenus

refID

-

name or string; reference to the element

Description

• 

The PopupMenu menu element defines a popup menu in a TextField or TextBox element.  The popup menu is invoked by right-clicking the text field or box.

  

 

• 

A PopupMenu element can contain any number of Menu, MenuItem, or MenuSeparator elements.

• 

A PopupMenu element can be contained in a Maplet, TextBox, or TextField element.

• 

The following table describes the control and use of the PopupMenu 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

 

 

 

 

 

reference

x

 

x

x

visible

x

 

x

x

 

 

 

 

 

• 

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

  

 

  

reference = name or string

  

A reference to the PopupMenu element.

  

If the reference is specified by both an index, for example, PopupMenu[refID], and a reference in the calling sequence, the index reference takes precedence.

  

 

  

visible = true or false

  

Whether the menu is visible to the user.  By default, the value is true.

Examples

withMapletsElements:

mapletMapletWindowTextFieldTF1popupmenu=PM1,value=sin(x),ButtonExit,ShutdownTF1,Right-click the text field to display the popup menu,PopupMenuPM1MenuDifferentiate,MenuItemWith respect to x,EvaluateTF1=diffTF1,x,MenuItemWith respect to y,EvaluateTF1=diffTF1,y,MenuSeparator,MenuItemExit Maplet application,ShutdownTF1:

MapletsDisplaymaplet

See Also

diff

Maplets/MenuElements

Maplets[Display]

Maplets[Elements]

Maplets[Elements][Button]

Maplets[Elements][Evaluate]

Maplets[Elements][Maplet]

Maplets[Elements][MenuItem]

Maplets[Elements][MenuSeparator]

Maplets[Elements][SetOption]

Maplets[Elements][Shutdown]

Maplets[Elements][TextField]

Maplets[Elements][Window]

Maplets[Tools][Get]

Maplets[Tools][Set]

Overview of Maplet Applications