encapsulate a toolbar definition - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Maplets : Elements : Tool Bar Elements : Maplets/Elements/ToolBar

Maplets[Elements][ToolBar] - encapsulate a toolbar definition

Calling Sequence

ToolBar(opts, toolitems)

ToolBar[refID](opts, toolitems)

Parameters

opts

-

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

toolitems

-

ToolBarButton or ToolBarSeparator elements

refID

-

name or string; reference to the element

Description

• 

The ToolBar toolbar element encapsulates a window toolbar definition.

  

 

• 

The ToolBar 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

 

 

refID

reference option

 

 

• 

A ToolBar element can contain any number of ToolBarButton or ToolBarSeparator elements.

• 

A ToolBar element can be contained in a Maplet element, or in a Window element in an equation for the toolbar option.

• 

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

  

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

  

 

  

visible = true or false

  

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

Examples

withMaplets[Elements]:

maplet:=MapletWindow'title'=Integration w.r.t. x,'toolbar'=ToolBarToolBarButtonExit,Shutdown,ToolBarSeparator,ToolBarButtonDo It,'onclick'=Evaluate'TF1'='∫TF1ⅆx',TextField'TF1',ButtonOK,ShutdownOK:

Maplets[Display]maplet

See Also

int, Maplets/ToolBarElements, Maplets[Display], Maplets[Elements], Maplets[Elements][Button], Maplets[Elements][Evaluate], Maplets[Elements][Maplet], Maplets[Elements][SetOption], Maplets[Elements][Shutdown], Maplets[Elements][TextField], Maplets[Elements][ToolBarButton], Maplets[Elements][ToolBarSeparator], Maplets[Elements][Window], Maplets[Tools][Get], Maplets[Tools][Set], 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