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.

Max. Text Length<br />

Rows<br />

Font<br />

Possible Settings for Full<br />

Graphic Displays<br />

Possible Settings for Text<br />

and Semi−Graphic<br />

Displays<br />

The field can be placed freely in the display. Therefore, Y can<br />

be set from 0 to the height of the display minus the height of the<br />

field in pixels.<br />

On text and semi−graphic displays, such as those which can be<br />

connected to the C130 CAN controller, fields can only be placed<br />

evenly on every eighth Y−coordinate (Y = 0, 8, 16, 24, etc.).<br />

Specifies the maximum number of characters which can be displayed in a ListBox line. Texts<br />

longer than the allowed length will be truncated; blank spaces are used to "fill in" shorter<br />

texts.<br />

Possible Settings The field must be able to fit in the picture with its set size and<br />

font.<br />

Specifies the number of rows that will be displayed in the ListBox which also becomes the<br />

height of the output field.<br />

Possible Settings The field must be able to fit in the picture with its set size and<br />

font.<br />

Chooses the output field font.<br />

Possible Settings Any font in the project can be selected.<br />

Source of Texts<br />

Determines the source of the displayed texts. Only one of the two following options can be selected and used.<br />

Text Group<br />

String<br />

Array<br />

Assign...<br />

With this setting, a text group is used as the source for the text to be displayed. The text cannot be<br />

altered during runtime, but language switching can naturally be used.<br />

Possible Settings Text group with default text numbering (text groups with text numbering which<br />

has been changed by the user cannot be used).<br />

With this setting, an array of STRINGs is used as the source for the text. In this way, texts can be<br />

changed and expanded during runtime. However, language−switching must also be prepared in the<br />

application if it is to be used.<br />

Possible Settings Name of a process variable of data type STRING[][].<br />

Example:<br />

In ANSI C, the variable must be declared as follows to define and connect 4<br />

texts with a maximum length of 80 characters to the ListBox.<br />

_GLOBAL plcstring texts[4][80];<br />

Access is then possible with normal array indexing, with texts[0] designating<br />

the first string and texts[1][4] designating the fifth character in the second<br />

string.<br />

Possible Values The strings can contain any desired text, but only characters existing in the<br />

selected font will be displayed on the screen.<br />

The Assign... button opens a dialog box to select a variable for the String array input field. By<br />

default, only variables of suitable types are displayed.<br />

It should be noted that the entire array is connected, not just parts of it.<br />

Variables<br />

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

Allows the connection of the variable which should select the text highlighted in the output field. In this way,<br />

texts in the ListBox are automatically advanced and the marked text is visible. The ListBox is an output field,<br />

which means that the operator cannot change the variable using the ListBox itself. However, this can be solved<br />

with additional input elements in the application.<br />

102 3.2.3.6 ListBox Output Field − Reference

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

Saved successfully!

Ooh no, something went wrong!