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.

Once the dialog box looks like the one shown above, switch to the Action tab. Once there, select the<br />

'Increment/Decrement' entry from the Key Type combo box.<br />

Further settings for this key type will then appear. In the Data Point area, select 'Bmpldx' from the Source combo<br />

box to use it as the variable to be manipulated. In addition, activate the Use Limits option. Restrict the value<br />

range using Limit Min 0 and Limit Max 4. Then set the Increment to −1 (the variable is therefore decreased by<br />

one with each activation of the button).<br />

Confirm the input by clicking OK.<br />

Now copy the 'Down' button and insert a copy of it to the right of the bitmap. Then edit the copy so that 'Up' is<br />

selected as the text under the Appearance tab, and the Increment under the Action tab is set to 1. In this way,<br />

the button increases the 'Bmpldx' variable by 1 when pressed.<br />

Now the center of the 'INIT_PIC' looks like the following image.<br />

4.2.2.10 IPC − Step 10: Page 2 − Ellipse with a Dynamic, Changeable Fill Color<br />

In the next picture, 'Page 2', you will draw an ellipse whose fill color can be changed during runtime using a<br />

variable.<br />

First, we will draw the ellipse. To do this, select the icon from the toolbar. With the positioning crosshair,<br />

'drag' the ellipse to any size somewhere near the center of the page.<br />

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

256 4.2.2.10 IPC − Step 10: Page 2 − Ellipse with a Dynamic, Changeable Fill Color

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

Saved successfully!

Ooh no, something went wrong!