Embedded Components - Maple Help

Home : Support : Online Help : System : Information : Updates : Maple 2015 : Embedded Components

 Embedded Components

New Microphone and Speaker Components

The new microphone and speaker components make it possible to capture and playback audio signals in a Maple worksheet. See an example of how both of these new components work in the new application: Interaural Time Delay.

With the advances in programmatic content generation, it is now possible to programmatically generate interactive embedded components. Several Maple commands have been updated to leverage this technology, including the AudioTools:-Preview command, which now returns a play button and a speaker component with the output option set to embed:

 > $\mathrm{audiofile}≔\mathrm{AudioTools}:-\mathrm{Read}\left(\mathrm{cat}\left(\mathrm{kernelopts}\left(\mathrm{datadir}\right),"/audio/stereo.wav"\right)\right):$
 >

Check Box Component

The check box component has been updated to support a selected image as well as including support for setting the following option programmatically:

 • groupname: the name of the component group

Code Edit Region

The look and feel for the code edit region has been improved with default settings, such as hidden border, hidden line numbers, and the vertical line to the left of the CER.

In addition, keyboard shortcuts to collapse or expand code edit regions have been added:

 • Alt+C : to collapse code edit region (Meta + Alt+C on Mac)
 • Alt+X : to expand code edit region (Meta + Alt + X on Mac)

The code edit region also has the following new option available in the Format menu:

 • Autoexecute property: control if the code edit region is executed on startup or not

Dial Component

 360 Degrees Rotation Add a Background Image

The dial component has three new options which can be set programmatically or in the properties dialog:

 • startAngle: specify the initial value of the dial
 • angleRange: specify the range of the dial from 1 to 360 degrees
 • image: use a custom image for the background of the dial

The following option can now be set programmatically:

 • continuousupdate: indicates whether the component should update continuously during drag operations

List Box Component

The list box component now supports multiple selection. This can be configured programmatically or in the properties dialog:

 • selectmultiple: indicates whether selecting multiple items is permitted
 • selectedItemList: the set of all items which are currently selected

 Choose one or more trigonometric functions to plot: sin(x)cos(x)csc(x)sec(x)

The following option can now be set programmatically:

 • groupname: the name of the component group

Meter, Rotary Gauge, and Volume Gauge Components

The following option can now be set programmatically for meter, rotary gauge, and volume gauge components:

 • continuousupdate: indicates whether the component should update continuously during drag operations

Plot Component

The following option for plot component can now be set programmatically:

 • clickdefault: indicates whether the default cursor action on a plot component is a click action

The following option got radio button component can now be set programmatically:

 • groupname: the name of the component group

Slider Component

The slider component is now resizable:

The properties for pixelHeight and pixelWidth of the slider can be changed in the right click properties menu or programmatically set using the DocumentTools:-SetProperty command.

The following option can now be set programmatically:

 • continuousupdate: indicates whether the component should update continuously during drag operations

Text Area Component

The following option for text area component can now be set programmatically:

 • wrapping: indicates whether content on one line of the text area which exceeds the horizontal space will automatically wrap to the next line

Toggle Button

The toggle button image has been updated.

To use the legacy button image for toggle buttons, the image files can be found in the images directory of your Maple installation.

The following option can now be set programmatically:

 • groupname: the name of the component group