add content to an element - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Maplets : Tools : Maplets/Tools/AddContent

Maplets[Tools][AddContent] - add content to an element

Calling Sequence

AddContent(x, opts)

Parameters

x

-

element

opts

-

(optional) content to add

Description

• 

The AddContent(x, opts) calling sequence adds content to a previously constructed element.  This is an advanced feature.  No post-processing is performed. Therefore, shortcuts associated with the added element cannot be used.

• 

The AddContent command must be used on constructed elements prior to a call to the Maplet command and can only be used directly on objects to which it is applied.

Examples

A Maplet application that has one label which, when clicked, exits.

withMaplets[Elements]:

a:=ActionSetOption'TF1'=

a:=Elements:-com.maplesoft.maplets.elements.MActionrun=false,Elements:-com.maplesoft.maplets.elements.MCommandSetParametervalue=,target=REFTF1,option=value

(1)

Maplets[Tools]AddContenta,Shutdown

Elements:-com.maplesoft.maplets.elements.MActionrun=false,Elements:-com.maplesoft.maplets.elements.MCommandSetParametervalue=,target=REFTF1,option=value,Elements:-com.maplesoft.maplets.elements.MCommandShutdown

(2)

See Also

Maplets[Tools], 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