User Guide

PlottingMaplet2:= Maplet(
'onstartup' = Action(RunWindow(Window1)),
Window('reference' = Window1,
BoxLayout(
BoxColumn(
BoxRow(
Plotter('reference' = Plotter1)),
BoxRow(
MathMLEditor('reference' = MathMLEditor1)),
BoxRow(
# Access the GetColor procedure and plot the result
Button("Plot", Evaluate('function' = 'GetColor',
'target' = 'Plotter1')),
# Launch the Color dialog
Button("Color", RunDialog('dialog' = 'ColorDialog1')),
# Close the Maplet
Button("Close", Shutdown()))
)
)
),
Action('reference' = 'approveColorDialog1'),
Action('reference' = 'cancelColorDialog1'),
ColorDialog('onapprove' = 'approveColorDialog1',
'oncancel' = 'cancelColorDialog1',
'reference' = 'ColorDialog1')
):
>
Display the Maplet
Maplets[Display](PlottingMaplet2);>
For more information on the Maplets package, refer to the ?MapletsPackage
help page. For more examples of designing Maplets using the Maplets
package, see the ?Maplets/Roadmap help page.
360 9 Maplets