Check Box: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
The Business Rules! '''Check Box''' or '''checkbox''' [[widget]] allows the users to choose a binary option. Checked or Not-Checked. | The Business Rules! '''Check Box''' or '''checkbox''' [[widget]] allows the users to choose a binary option. Checked or Not-Checked. | ||
[[image:Checkbox.png|800px]] | |||
Specify "row, col, CHECK cols [,Attributes] [,Fkey] [,NOWAIT]": "[^]caption" | Specify "row, col, CHECK cols [,Attributes] [,Fkey] [,NOWAIT]": "[^]caption" |
Revision as of 01:14, 23 May 2013
The Business Rules! Check Box or checkbox widget allows the users to choose a binary option. Checked or Not-Checked.
Specify "row, col, CHECK cols [,Attributes] [,Fkey] [,NOWAIT]": "[^]caption"
These work like Radio Buttons, except they are not functionally grouped. In both control types, INPUT FIELDS reads checked or unchecked captions.
In the following example, two 8-column checkboxes are created. The loop keeps executing until Esc is pressed. Both checkboxes may be checked simultaneously. The appropriate FKey value is printed any time either of the checkboxes is checked or unchecked.
00100 let X$="one" : let Y$="two" 00200 PRINT FIELDS "5,1,C 20": "Press Esc to quit" 00300 do 00400 RINPUT FIELDS "1,1,CHECK 8,,10;2,1,CHECK 8,,11": X$,Y$ 00500 PRINT FIELDS "4,1,N 2": FKEY 00600 loop WHILE FKEY~=99