|
Push Value
A Push Value can, like a Radio Button and a Check Box, be used to set the value of a variable to a specific value. With a Push Value, the learner can raise the value of a particular variable by 1 everytime the Push Value element is clicked.
Tab sheet: Basics
| 1. | Click the Basics tab sheet. |
| 2. | In the Label box, type the name you want to appear next to the button. |
| 3. | If you want the label to be a picture, click Label Is picture. Click on the Browse button that appears to select an image file (.gif). |
| 4. | If you want the text on the button to appear in another font, in the Font box, select a font. |
| 5. | If you want the Radio Button to activate using the Tab-key, click Can Tab. |
Tab sheet: Variable
| 1. | Click the Variables tab sheet. |
| 2. | Choose the variable of which you want to be able to set the value using this Push Value. |
| 3. | Enter a value in the Set Value box that you want to link to the Push Value. When the button has been clicked on, the value of the variable will change to the value you specified in the Set Value box. |
Tab sheet: Colour
| 1. | Click the Colour tab sheet. |
| 2. | Select a colour from the palette. You can also type a value for the Red, Green and Blue value (0-255) or use the sliders. |
| 3. | Indicate whether the color is for the Text or for the 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 topleft corner of the window. |
| 2. | Determine the relative position of the left, top, right, and bottom side of the element by typing values between 0 and 1 in the appropriate Relative Position boxes. |
| 3. | 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
|