Navigation Buttons

Navigation:  Appendices > Windows Refresher > Common Controls >

Navigation Buttons

Previous pageReturn to chapter overviewNext page

Navigation buttons refers to a row of contiguous buttons, such as can be found in the Special Fonts Manager or the Tokens Manager. Navigation buttons are used to navigate and edit records of a data table. They also indicate the state of the table (edit, browse, inactive) by being grayed-out or not.

 

 

The sample above shows all the possible navigation buttons; in practice only some of the possible buttons will be displayed, depending on the context.

 

Going from left to right, the buttons are :

 

First

Go to the first record of the table

Previous

Go to the previous record

Next

Go to the next record

Last

Go to the last record

Insert

Add a new record

Delete

Delete the currently selected record

Edit

Start modifying the currently selected record

Post

Save changes made to the current record since it went into edit mode

Cancel

Cancel changes made to the current record since it went into edit mode

Refresh

Reload the table data, to get the latest changes made by other users (you do not need to use this button to see changes you made)

 

 

Navigation buttons are almost always associated with DBGrids, and the actions performed by these buttons can also be performed on the DBGrid directly. For example, if the table can be modified, a single click on one of the fields will be equivalent to using the edit button.

 

     

 

The current record indicator at the left of the DBGrid shows whether the table is in browse mode (above left) or in edit mode and has been modified (above right). Note that in some cases the table can be immediately edited by typing into it without a previous click. This possibility is indicated by a different current record indicator :

 

 

Using the up and down arrows to move to a different record will save any changes made to the current record, but clicking elsewhere than in the DBGrid, or using the ESC key, will cancel any changes made to the current record. Using the down arrow, when you are at the bottom of the DBGrid (last record) will insert a new record (if the context allows for it).


Topic 170820 updated on 06-Jan-2003.
Topic URL: http://www.qppstudio.net/webhelp/index.html?navigationbuttons.htm