Add Attribute - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Maplets : Tools : Add Attribute

Maplets[Tools]

  

AddAttribute

  

add attributes to an element

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

AddAttribute(x, opts)

Parameters

x

-

element

opts

-

(optional) attribute(s) to add

Description

• 

The AddAttribute(x, opts) calling sequence adds attributes to a previously constructed element.  This is an advanced feature.  No post-processing is performed. Therefore, shortcuts cannot be used.

• 

The AddAttribute 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.

withMapletsElements:

bButtonHello,onclick=A1

bMaplets:−Elements:−com.maplesoft.maplets.elements.MButtononclick=REFA1,caption=Hello,enabled=true,halign=center,valign=center,visible=true

(1)

MapletsToolsAddAttributeb,reference=B1,color=#FF00FF

Maplets:−Elements:−com.maplesoft.maplets.elements.MButtonreference=B1,color=#FF00FF,onclick=REFA1,caption=Hello,enabled=true,halign=center,valign=center,visible=true

(2)

See Also

Maplets[Tools]

Overview of Maplet Applications