History |
Checkboxes
About checkboxes
A checkbox lets users select (to turn on) or clear (to turn off) an option. You can make checkboxes appear within a group box.
Checkbox when drawn:
Checkbox when complete:
Adding standard checkboxes
These are the standard FirstClass checkbox states:
To add a checkbox using these states:
1 Choose Fields > Buttons & Groups > Checkbox.
2 Add this field to the form.
3 Update the following fields on the Contents - Data tab of the Field Attributes form as required:
4 Update the Contents - Field Control tab, if you want this field to control another field.
Adding customized checkboxes
You can use custom icons for your checkbox states, as in the following example:
When you draw your custom icons:
• Create two icons for each state. In our example, there are two states (vertical line and horizontal line).
The second icon for each state is the same as the first, except for a gray background. It indicates that the checkbox is currently being clicked.
• Draw each icon with a boundary box, so that it looks like a checkbox. Draw the boundary boxes so that they look 3D.
To use your customized icons:
1 Import the icons into your resource file.
You must assign resource IDs to your icons in the order you want them to show as a user cycles through the checkbox states. For each state, use first the unclicked, then the clicked appearance.
Number the icons using a base number, with 20 added to it for the first icon. Increment each icon in the cycle by one. In our example, the base number is 9999.
2 Choose Fields > Buttons & Groups > Checkbox.
3 Add this field to the form.
Make the checkbox field large enough to accommodate your icons.
4 Update the following fields on the Contents - Data tab of the Field Attributes form as required:
5 Update the Contents - Field Control tab, if you want this field to control another field.
| ||||||||||||||||||||||