How to Insert a Check Box

Previous Next

A check box allows the user to select or clear a field value. Check boxes are useful where only two values are applicable, such as Yes/No or Male/Female.

You can create a check box:

In the Definer, by using the Check Box display type for a domain.

In the Windows Designer, by inserting a check box control class into a window or dialog.

If you create the control using the Check Box display type, allowed values must be defined at domain level. In this case, the check box appears automatically after synchronization.

If you create the control in the Windows Designer, the values on the list can either be hard-coded, or retrieved from the database by means of a SQL statement or Related Column.

To insert a check box using the Windows Designer:

1.Use the Windows Designer catalog to open the appropriate window/dialog.
2.In the design view, select the object into which you want to insert the check box.
3.From the menu bar, choose Insert, Check Box, or drag one of your own check box control classes from the Controls tab page of the Windows Designer catalog.
4.Make sure the Selection Filter option from the View menu is turned on, select the check box object, and then open the Property Inspector.
5.Change the Prompt and Default Value properties on the General tab page of the Property Inspector to suit your needs.
6.Depending on whether you want to hard code the values on the check box or retrieve them from the database, set the Value List property, or the Values to Query property. You can also use a Related Column.
If you use the Value List property, separate the values by means of "returns" (either use SHIFT+ENTER, or CTRL+ENTER). If the actual values are not the same as the prompts you want to use, set the Value List Prompts property (again use returns to separate the values).