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.

4.7.1.2 Option bytes<br />

This field accepts a byte array. The length of this byte array has to correspond at least to the number of texts<br />

used in the text group. Using this byte array, texts can be locked runtime (value = 1) or made invisible (value =<br />

2). Each index in the array describes the state of its corresponding text element (OptionByte[10] = Text #10 in<br />

the text group). Value 0 sets the text back to visible and unlocked.<br />

4.7.1.3 Cursor Character<br />

The cursor character has been integrated into the ListBox input control for black/white displays.<br />

Since colors can't be configured to differentiate between selected elements<br />

and cursor elements, a character has been introduced for the cursor.<br />

This character is inserted before the text where the cursor is located.<br />

4.7.1.4 Selected Item<br />

Variable on which the index of the selected item is mapped.<br />

4.7.1.5 Status<br />

Status variable. This variable can be used to lock this control or make it invisible.<br />

(see also Controlling Fields with Status Variables).<br />

Up key: Key for upward movement in the ListBox<br />

Down key: Key for downward movement in the ListBox<br />

Select key: Key for selecting an element<br />

Note when configuring control keys:<br />

Keys for up/down control have to be configured. If an Enter key is already present on the operator panel (or<br />

display), then a selection key is not necessary. In this case, the Enter key itself is used as the selection key. The<br />

Enter key can even be used to switch to the next selection element. If a separate selection key has been<br />

configured, then a "Goto Input" control key is required to move to other input fields.<br />

Procedure:<br />

At runtime, the user receives a cursor for choosing text and a cursor for the selected element (text group<br />

variable). In contrast to the ListBox output control, scrolling up or down through the entries is possible without<br />

changing the value of the connected variable. The index of the element under the cursor is written to the text<br />

group variable with the Enter or selection key.<br />

4.7.1.6 Colors<br />

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

338 4.7.1.2 Option bytes

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

Saved successfully!

Ooh no, something went wrong!