23.11.2012 Views

2 Visual Components Manuals

2 Visual Components Manuals

2 Visual Components Manuals

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Introduction to <strong>Visual</strong> <strong>Components</strong> 2.3<br />

4.7.2 Numeric Input<br />

Entries in a visualization application are usually made using numeric input fields. <strong>Visual</strong> <strong>Components</strong> provides a<br />

special input field which meets nearly all of the possibilities for numeric input. If user−defined input is necessary,<br />

this can be taken care of by using string input fields which are described in the next section (see also Text<br />

Input).<br />

A numeric input field is inserted in the <strong>Visual</strong> <strong>Components</strong> picture editor. After selecting the<br />

icon (shown here to the left) from the toolbar, this menu appears. Selecting Input Numeric<br />

switches the editor to insert mode for numeric input fields.<br />

Any number of input fields can be inserted. The 'Properties' dialog box appears to edit the<br />

newly inserted field once it has been placed. 'Properties' can also be opened by<br />

double−clicking on an existing input field.<br />

4.7.2.1 Formatting and Handling Input<br />

This input field supports many settings and options to meet the needs of the application.<br />

4.7.2.1.1 Format<br />

The maximum number of digits to be displayed is set using Number of Digits. The number of decimal places to<br />

be displayed is set using Digits After Decimal Point. These decimal places are "real" decimal places only when a<br />

REAL variable is used. For integer variables, only one decimal point is displayed in the appropriate place. The<br />

value is still a whole number. For a two digit decimal setting, 1725 on the controller is displayed as 17.25 in the<br />

input field. The input of 32.68 sets the value of the connected variable to 3268.<br />

Depending on whether decimal places are displayed, the field width corresponds to the Number of Digits. It can<br />

be displayed as one character wider if the decimal point is used.<br />

Leading places can be filled with zeroes if the option Display Leading Zeros is selected. By default, leading<br />

places are filled with spaces.<br />

4.7.2 Numeric Input 341

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!