Suppose that your document has a slider component with the name Slider1. To set the position of this slider to th of its maximum (assuming the range is the default of 0..100) , you can do this:
>
|
|
>
|
|
Suppose your document has a plot component with the name Plot0. To display a single plot in the component, use the following commands.
>
|
|
>
|
|
To display an array of plots in the plot component, you must force the array to stay unsimplified by referring to it with quotes. See the specific component help page for any other special input instructions.
>
|
|
>
|
|
>
|
|
If code attached to a button causes several other embedded component values to change, you would normally not want the document to update until all those changes have been made. If you want to force updating after each change, use the refresh = true option (which can be abbreviated as just refresh). For example the following code illustrates updating a series of ComboBox elements. It is assumed that this code is attached to a Button component.
>
|
|