Maplets[Tools]

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.

 > $\mathrm{with}\left(\mathrm{Maplets}\left[\mathrm{Elements}\right]\right):$
 > $a≔\mathrm{Action}\left(\mathrm{SetOption}\left('\mathrm{TF1}'=""\right)\right)$
 ${a}{≔}{\mathrm{Maplets}}{:-}{\mathrm{Elements}}{:-}{\mathrm{com.maplesoft.maplets.elements.MAction}}{}\left({"run"}{=}{"false"}{,}{\mathrm{Maplets}}{:-}{\mathrm{Elements}}{:-}{\mathrm{com.maplesoft.maplets.elements.MCommandSetParameter}}{}\left({"target"}{=}{"REF"}{}\left({"TF1"}\right){,}{"value"}{=}{""}{,}{"option"}{=}{"value"}\right)\right)$ (1)
 > $\mathrm{Maplets}\left[\mathrm{Tools}\right]\left[\mathrm{AddContent}\right]\left(a,\mathrm{Shutdown}\left(\right)\right)$
 ${\mathrm{Maplets}}{:-}{\mathrm{Elements}}{:-}{\mathrm{com.maplesoft.maplets.elements.MAction}}{}\left({"run"}{=}{"false"}{,}{\mathrm{Maplets}}{:-}{\mathrm{Elements}}{:-}{\mathrm{com.maplesoft.maplets.elements.MCommandSetParameter}}{}\left({"target"}{=}{"REF"}{}\left({"TF1"}\right){,}{"value"}{=}{""}{,}{"option"}{=}{"value"}\right){,}{\mathrm{Maplets}}{:-}{\mathrm{Elements}}{:-}{\mathrm{com.maplesoft.maplets.elements.MCommandShutdown}}{}\left(\right)\right)$ (2)