|
There are a small number of UserInterface elements used in setting up a WorkSheet. Basically, these user interface elements differ both in form and function from the usual “Windows–like”
user interface elements. The following subsections list these user interface elements and explain their use.
Processing buttons
Processing buttons are the simplest SymathUserInterface elements. They are grey coloured and on the button a text or a symbol with the task to be executed is displayed. If the user clicks the button with the mouse
then the task described with the button text will be executed. Most of the processing buttons are listed at the end of the worksheet sections but some of them are also shown in the Symath tables.Examples of
processing buttons:

2 State selection buttons
There are many parameters and options in Symath programs which can have only two possible values. Changing the value of these parameters means to switch
from one possible value (one possible state) to another value (another state). Such two state parameters are for example parameters that allow/disable the display
of some user interface elements. The state selection buttons change the state of a parameter between these two possible states. The button always displays the
current state of the parameter (how it is at present). If clicked, (i.e. switched to the other state) the text displayed on the button changes to some other text
describing the new state. The colour of the button also changes if switched from one state to the other state. The state that would correspond to the On state is
shown as a red button while the state that would correspond to the Off state is shown as a blue button (for example Show table=On state, Don’t show table= Off
state). In some cases the correspondence to On/Off colours is arbitrary. Examples of two state buttons
changes to
changes to

changes to
changes to

MULTIPLE State selection buttons
Multiple state selection buttons change the state of parameters to one of more than two possible values. These buttons are used to select one setting from a longer
list of possible ones going through all possible values of the parameter. The multiple state selection buttons are shown in the same way as the processing buttons
with the single difference that the text shown on the button now defines a given “state“ or selection. If the user clicks the button with the mouse then the next
possible value is selected and the corresponding text is displayed on the button.Examples of multiple state selection buttons:
changes to
changes to
changes to
changes to

EXPRESSION (Formula) input fields
Expression input fields are the “hit” of Symath programs. These are input fields where mathematical formulae can be entered!. Symath will convert them to an
evaluable mathematical form and use them in the analysis. As long as in the mathematical sense there is no difference between a formula Sin[x] or a real constant
1.2 or an integer 3, these input fields accept anything that is mathematically correct. The formula input fields are also shown as buttons but are light yellow coloured.
The user can move the cursor ON the button, and type the formula on the button. If the formula is entered then he/she has to click the button with the mouse
signaling that the formula input is finished and the textual form can be interpreted by the program. Example of a formula input button:
 |
Known Problems : In some cases Mathematica will not accept your formula even if it is clear that there are no typing or definition errors. In most cases it helps to
go through the formula and delete additional empty characters between the formula elements.
How to edit input fields
At the very beginning of this chapter we want to emphasize again that you are not allowed to click the input button with the mouse until you haven’t finished editing
the formula. In order to move the cursor ON the input field you have to click with the mouse just AFTER the button you want to edit. Now you will see the blinking
cursor just after the button. The following figure shows the blinking cursor set just after the input filed that we want to edit.
Now you can move the cursor ON the input field using the move cursor left <- keyboard key. The cursor will blink on the button and you can start editing the
pre-defined data value. Another method to move the cursor on the input field is to click with the mouse just above or under the button. In this case the cursor will jump on the input field.
If the formula is very big (could be bigger than a page) then probably the best way to edit the formula is to use a separate notebook. Here you can set up the
formula and you can also test it. If you have finished with the set up then you can copy the formula and paste it in the input field. You can also copy out the formula
shown in an input field. For this you first have to select the formula (or part of it) and than click on Copy. You can then paste the formula in a new empty notebook.
Text input fields
Text input fields accept some text as input. Text input can be some simple text as “Hello“ or more complicated input using any known Mathematica typesetting
elements . The only difference between “formulae” and “text” is their use. A formula input MUST be a correct mathematical formula to be evaluated somewhere in
the program while text input can be anything, even an incorrect formula. Text edited in this input field will be used only for display purposes and never for
calculation. String input fields MUST be typed as “Hello“ i.e. between two “ ” characters. If you forget this and you click on a string input than Symath will clear
this input field and display “Error” to remind you that the input wasn’t correct and you have to retype your input. Text input fields are displayed with a rose background as shown in the next example :
Real number data input fileds
Real number data input fields are similar to the formula input fields. They accept only real numbers as input and for a better visual recognition they have another
input field background colour (dark yellow). Example for a real number input data field:
Integer input fields
Integer number data input fields are similar to the formula input fields. They accept only integers as input and for a better visual recognition have another input filed
color (dark yellow). Example for an integer input data field :
|