Maplets[Elements]
MenuSeparator
specify a horizontal line in a menu
Calling Sequence
Parameters
Description
Examples
MenuSeparator(opts)
MenuSeparator[refID](opts)
opts
-
equation(s) of the form option=value where option is one of reference or visible; specify options for the MenuSeparator element
refID
name or string; reference to the element
The MenuSeparator menu element specifies a horizontal line, generally placed between distinct sets of menu items, in a menu.
The MenuSeparator element features can be modified by using options. 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
reference option
A MenuSeparator element cannot contain other elements.
A MenuSeparator element can be contained in a Menu or PopupMenu element.
The following table describes the control and use of the MenuSeparator 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
visible
The opts argument can contain one or more of the following equations that set Maplet application options.
reference = name or string
A reference for the MenuSeparator element.
If the reference is specified by both an index, for example, MenuSeparator[refID], and a reference in the calling sequence, the index reference takes precedence.
visible = true or false
Whether the menu separator is visible on the menu. By default, the value is true.
with⁡MapletsElements:
maplet≔Maplet⁡Window⁡menubar=MB1,Button⁡OK,Shutdown⁡Closed from button,MenuBarMB1⁡Menu⁡File,MenuItem⁡Quit,Shutdown⁡Quit from menu,MenuSeparator⁡,MenuItem⁡Close,Shutdown⁡Closed from menu:
MapletsDisplay⁡maplet
See Also
Maplets/MenuElements
Maplets[Display]
Maplets[Elements][Button]
Maplets[Elements][Maplet]
Maplets[Elements][Menu]
Maplets[Elements][MenuBar]
Maplets[Elements][MenuSeparator]
Maplets[Elements][PopupMenu]
Maplets[Elements][SetOption]
Maplets[Elements][Shutdown]
Maplets[Elements][Window]
Maplets[Tools][Get]
Maplets[Tools][Set]
Overview of Maplet Applications
Download Help Document