Sybase 2 Barcode Reader User Manual


 
CHAPTER 8 Displaying and Validating Data
DataWindow Designer User’s Guide 245
What happens
The value you enter in the Text box becomes the display value, and values
entered for On, Off, and Other become the data values.
When users check or clear the check box at runtime, DataWindow Designer
enters the appropriate data value in its buffer. When the
UpdateData method is
called, DataWindow Designer sends the corresponding data values to the
database.
Centering check
boxes without text
You may find it useful to center check boxes used for columns of information.
First make the text control used for the column header and the column control
the same size and left aligned. Then you can center the check boxes and the
column header.
To center check boxes without text:
1 In the Edit property page for the column, make sure the Left Text check
box is not selected and that the Text box where you specify associated text
is empty.
2 In the General property page, specify centering (Alignment>Center) or
specify centering using the StyleBar.
The RadioButtons edit style
If a column can take one of a small number of values, you might want to
display the column as radio buttons:
To use the RadioButtons edit style:
1 Specify how many radio buttons will display in the Columns Across box.
2 Enter a set of display and data values for each button you want to display.
The display values you enter become the text of the buttons; the data
values are put in the DataWindow buffer when the button is clicked.
Using accelerator keys
To use an accelerator key on a radio button, enter an ampersand (&) in the
Display Value before the letter that will be the accelerator key.
What happens
Users select values by clicking a radio button. When the UpdateData method is
issued, the data values are sent to the database.