Sybase 2 Barcode Reader User Manual


 
Adding controls to a DataWindow object
210 DataWindow .NET
4 Click the Function button.
The Function For Toolbar dialog box displays.
5 Select a function and click OK.
You return to the Toolbar Item Command dialog box.
6 Specify text and microhelp that displays for the button, and click OK.
DataWindow Designer places the new button in the PainterBar. You can
click it to add a computed field to your DataWindow object the same way
you use the built-in Sum button.
Adding buttons to a DataWindow object
The Button control is a command or picture button that can be placed in a
DataWindow object. When clicked at runtime, the button activates either a
built-in or user-supplied action.
For example, you can place a button in a report and specify that clicking it
opens the Filter dialog box, where users can specify a filter to be applied to the
currently retrieved data.
To add a button to a DataWindow object:
1 Select Insert>Control>Button from the menu bar.
2 Click where you want the button to display.
You may find it useful to put a Delete button or an Insert button in the
detail band. Clicking a Delete button in the detail band will delete the row
next to the button clicked. Clicking an Insert button in the detail band will
insert a row following the current row.
Be careful when putting buttons in the detail band
Buttons in the detail band repeat for every row of data, which is not always
desirable. Buttons in the detail band are not visible during retrieval, so a
Cancel button in the detail band would be unavailable when needed.
3 With the button still selected, type the text to display on the button.
4 Display the General page of the Properties view for the button.