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.

Now you will add the function which copies the index of the current selection to an additional variable when a<br />

key is pressed.<br />

First you will need a touch button whose Key Type under the Action tab is set to "Momentary USINT". In the<br />

Data Point area, select the variable 'LBButtonDown' using the Assign... button and enter the number 1 as Value<br />

1. This button function means that the 'LBButtonDown' variable keeps the value 1 as long as the button is<br />

pressed down on the screen. If the button is released, then the variable is set back to the value 0.<br />

Under the Appearance tab, choose 'Enter' from the Text combo box.<br />

Confirm the input by clicking OK.<br />

Next to the new 'Enter' button, add a numeric input field which is connected to the 'LBSelldx' variable. The value<br />

of the currently selected entry is stored in this variable after the 'Enter' button is pressed.<br />

The finished picture is shown in the following image:<br />

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

260 4.2.2.11 IPC − Step 11: Page 3 − Inserting a ListBox with Control Buttons

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

Saved successfully!

Ooh no, something went wrong!