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.

4.5.3.2 Rectangle and Square<br />

4.5.3.2.1 Rectangle Properties<br />

Rectangles can be drawn in different colors with or without being filled. The 'Object Properties' dialog box is<br />

used for editing a rectangle.<br />

The 'Object Properties' dialog box is opened by double−clicking on a rectangle.<br />

The corner points of the rectangle can be set exactly<br />

(in pixels) by using the Top, Left, Right, and Bottom<br />

settings under the Parameter tab.<br />

Status variable<br />

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

rectangles, bit 0 of the status variable is responsible<br />

for determining whether the rectangle is drawn or not.<br />

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

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

Rectangle colors are globally defined using the<br />

foreground and background colors. The global setting<br />

applies to all rectangles which have the Use Global<br />

option selected.<br />

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

Specific colors can be selected by disabling the global<br />

settings.<br />

The rectangle is filled with the foreground color if the<br />

Fill option is selected. The background color is used<br />

for rectangle borders.<br />

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

change rectangle colors during runtime. The variable<br />

has to be of data type UINT.<br />

The higher value byte represents the foreground color<br />

(0−255). The lower value byte represents the<br />

background color (0−255).<br />

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

316 4.5.3.2 Rectangle and Square

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

Saved successfully!

Ooh no, something went wrong!