|
Check Box
A Check Box can be used to set the value of a Boolean variable to either 1 (true) or 0 (false). You can use this Boolean in your model to give a specific value to a certain variable or set of variables when the Check Box is checked. Look for instance at the following example, where the variable b is a Boolean:
a = if b = 1 then 3 else 2 endif
If you add this line to your model, and subsequently link the variable b to the Check Box, the variable a will take the value 3 if the Check Box is checked (b = 1), and the value 2 if it is unchecked (b = 0). See below for specific details about each of the four tab sheets:
Tab sheet: Basics
| 1. | Click on the Basics tab sheet. |
| 2. | If you want the label to be an image instead of text, click the Label is Image check box. |
| 3. | If you want the check box to be accessible scrolling through the interface with the tab-key, click the Can Tab check box. |
| 4. | If you have chosen for a text label, in the Default Label box, type the text you want to appear on the label. |
| 5. | If you have chosen for an image label, click on the Browse button that appeared and select an image (.gif). |
| 6. | In the Font-box, choose a font. |
| 7. | If you want the check box itself to be represented by a picture, drag a picture from the Application window and drop it into the On Image box to present it when the check boxed is clicked, and in the Off Image when the check boxed is not clicked. |
Tab sheet: Variable
| 1. | Click the Variables tab sheet. |
| 2. | Choose a variable from the list of variables. The variable has to be a Boolean variable. To create a Boolean Variable, go to the equation model editor, select a variable, and from the drop-down menu under Range, select Boolean. |
Tab sheet: Colour
| 1. | Click the Colour tab sheet. |
| 2. | Select a colour from the palette. |
| 3. | If the colour is for the text, click text. If the colour is for the button, click button. |
Tab sheet: Position
Please note! Using this tab sheet to set the position is optional. Instead of dragging and resizing, you can use the Position tab sheet to specify relative and absolute positions.
| 1. | Click the Position tab sheet.
- Left, Top, Right, an Bottom, refer to the four sides of the element.
- Relative Position refers to the position on the window, where the maximum left and top side of the window refer to 0, and the maximum right and bottom side of the window refer to 1.
- Offset refers to the amount of pixels from the top-left corner of the window. |
| 2. | Determine the relative position of the left (X) and top (Y) side of the element by typing values between 0 and 1 in the appropriate Relative Position boxes. |
| 3. | Determine the relative position of the center of the element by typing values between 0 and 1 in the appropriate arrow-X and arrow-Y Relative Position boxes. |
| 4. | Determine the size of the element by typing the amount of pixels in the appropriate Offset boxes. |
Related topics:
Dynamic Widgets
Static Widgets
Copyright University of Twente 2011
|