Check Box: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
(Created page with "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 [,Attribu...")
 
No edit summary
Line 3: Line 3:
  Specify "row, col, CHECK cols [,Attributes] [,Fkey] [,NOWAIT]": "[^]caption"
  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.
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.
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.

Revision as of 00:00, 6 April 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

Output