Google Classroom
GeoGebraGeoGebra Classroom

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.Toolbar ImageActivate 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.Toolbar ImageSelect 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.
1.Toolbar Image Select text5 from the list of objects on the left side and open the Settings.
2.Toolbar ImageClick 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.Toolbar ImageSelect point R from the list of objects. Click on tab Advanced. The text field Condition to Show Object is empty.
4.Toolbar ImageEnter f into the text field Condition to Show Object. The visibility of point R is now connected to the check box as well.
5.Toolbar ImageRepeat steps 4 and 5 for segment e which connects the second vector with point R on the number line.
Hint: Now the check box controls three objects of your dynamic figure: 
  • 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