Embedded Components
New Microphone and Speaker Components
Check Box Component
Code Edit Region
Dial Component
List Box Component
Meter, Rotary Gauge, and Volume Gauge Components
Plot Component
Radio Button
Slider Component
Text Area Component
Toggle Button
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:
audiofile≔AudioTools:-Readcatkernelopts⁡datadir,/audio/stereo.wav:
AudioTools:-Previewaudiofile, 0.0..0.1, color=Orange,output=embed
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
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
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
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 for meter, rotary gauge, and volume gauge components:
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:
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 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
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.
Download Help Document