23.11.2012 Views

2 Visual Components Manuals

2 Visual Components Manuals

2 Visual Components Manuals

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

The position of the line can be set exactly (in pixels)<br />

under the Parameter tab. The Top, Left, Right and<br />

Bottom settings specify the position of the respective<br />

endpoint in pixels.<br />

The Status Variable is of data type UINT. For lines, bit<br />

0 is responsible for determining whether the line is<br />

drawn or not.<br />

BIT 0 == 1 − Line not shown<br />

BIT 0 == 0 − Line shown<br />

Basic colors for all lines can be set under the global<br />

color settings. These global settings apply to all lines<br />

which have this option selected.<br />

Lines may also have individual color settings.<br />

Individual colors can be selected by disabling the Use<br />

Global option.<br />

The optional variable in the Colors Variable field can<br />

change the line color during runtime. The variable has<br />

to be of data type UINT.<br />

The higher value byte sets the foreground line color<br />

(0−255). The lower value byte is not used.<br />

4.5.3 Rectangle and Square<br />

Rectangles can be drawn with any size and color using the editor. Not all panels support rectangles. Some<br />

panels cannot draw rectangles filled with color. This hardware limitation is taken into account by the editor.<br />

4.5.3.1 Drawing Rectangles<br />

Rectangle mode is enabled by selecting the rectangle icon from the toolbar. A rectangle can be drawn on<br />

the display in this mode by pressing the left mouse button. Drawing squares takes place while simultaneously<br />

holding down the Ctrl key while drawing. The line width for a rectangle is always 1 pixel. The position and size of<br />

the rectangle can be changed after it has been drawn.<br />

Double−clicking on the rectangle opens the Object Properties dialog box.<br />

A selected rectangle is displayed in the editor<br />

with a border. It can now be enlarged or<br />

reduced.<br />

As shown here, selection mode has to be<br />

active (mouse pointer icon).<br />

Right clicking on an empty area in the editor<br />

changes from selection mode to object editing<br />

mode.<br />

4.5.3 Rectangle and Square 315

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

Saved successfully!

Ooh no, something went wrong!