Inserting a check box
In GeoGebra a Check Box is the graphical representation of a Boolean variable. It can either be true or false, which can be set by checking (Boolean variable = true) or unchecking (Boolean variable = false) the Check Box.
Task
Insert a check box that allows you to show or hide the answer to the addition problem.
Instructions
1. | Activate the Check Box tool and click in the Graphics View next to the result of the addition problem to open the Check Box Dialog. | |
2. | Enter Show result into the Caption text field.
| |
3. | To insert text5 into the list of objects influenced by the check box, select text5 from the drop down menu below the Caption text field. Hint: The visibility of text5 is now controlled by the check box. | |
4. | Click OK to create the check box. | |
5. | Select the Move tool and check / uncheck the check box to try out if text5 can be hidden / shown. |
Try it yourself...
Instructions (continued)
Open the Algebra View and check out the list of objects on the left side. The list of Boolean Values only contains one object called f, which is represented graphically as your check box.
Hint: Now the check box controls three objects of your dynamic figure:
1. | | Select text5 from the list of objects on the left side and open the Settings. |
2. | | Click on tab Advanced and look at the text field called Condition to Show Object. It shows the name of your check box f. Hint: This means that the visibility of text5 depends on the status of the check box. |
3. | | Select point R from the list of objects. Click on tab Advanced. The text field Condition to Show Object is empty. |
4. | | Enter f into the text field Condition to Show Object. The visibility of point R is now connected to the check box as well. |
5. | | Repeat steps 4 and 5 for segment e which connects the second vector with point R on the number line. |
- text5 showing the result of the addition problem
- point R showing the result on the number line
- segment e connecting the second vector with the result