API:Vcl.Bind.Navigator.TBindNavigator.VisibleButtons
Delphi
property VisibleButtons: TNavigateButtons read FVisibleButtons write SetVisible default 1023;
C++
__property VisibleButtons = {default=1023};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Vcl.Bind.Navigator.pas Vcl.Bind.Navigator.hpp |
Vcl.Bind.Navigator | TBindNavigator |
Description
Determines the buttons that appear on the binding database navigator.
Vcl.Bind.Navigator.TBindNavigator.VisibleButtons inherits from Vcl.Bind.Navigator.TCustomBindNavigator.VisibleButtons. All content below this line refers to Vcl.Bind.Navigator.TCustomBindNavigator.VisibleButtons.
Determines the buttons that appear on the binding database navigator.
Use VisibleButtons to select the buttons that will appear on the binding database navigator. Leave any of the navigator buttons out of the VisibleButtons set in order to hide those buttons and thereby prevent the user from performing certain operations. For example, to only allow the user to view the records in the dataset, VisibleButtons should include only nbFirst
, nbPrior
, nbNext
, and nbLast
.
VisibleButtons can take one or more of the following values:
Value | Button | Purpose |
---|---|---|
|
First |
Sets the current record to the first record in the dataset, disables the First and Prior buttons, and enables the Next and Last buttons, if they are disabled. |
|
Prior |
Sets the current record to the previous record and enables the Last and Next buttons, if they are disabled. |
|
Next |
Sets the current record to the next record and enables the First and Prior buttons, if they are disabled. |
|
Last |
Sets the current record to the last record in the dataset, disables the Last and Next buttons, and enables the First and Prior buttons, if they are disabled. |
|
Insert |
Inserts a new record before the current record and sets the dataset to Insert and Edit states. |
|
Delete |
Deletes the current record and makes the next record the current record. |
|
Edit |
Puts the dataset into Edit state so that the current record can be modified. |
|
Post |
Writes changes in the current record to the database. |
|
Cancel |
Cancels edits to the current record, restores the record display to its condition prior to editing, and turns off the Insert and Edit states, if they are active. |
|
Refresh |
Refreshes the buffered data in the associated dataset. |