TcxNavigatorControlButtons.GetButtonEnabled(Integer) Method
Sets the button state according to the associated control’s status.
Declaration
function GetButtonEnabled(ADefaultIndex: Integer): Boolean; override;
Parameters
Name | Type |
---|---|
ADefaultIndex | Integer |
Returns
Type |
---|
Boolean |
Remarks
The GetButtonEnabled method provides the condition defining whether a navigator button is enabled.
First, Prior, and PriorPage buttons are enabled when the IsBof property of the IcxNavigator interface is False. For instance, when a user moved the focus to the second record within the ExpressQuantumGrid data view.
Last, Next, and NextPage buttons are enabled when the IsEof property of the IcxNavigator interface is False. For instance, when any record except for the last one is focused within the ExpressQuantumGrid data view.
The Insert button is enabled when the CanInsert property of the IcxNavigator interface is True.
The Delete button is enabled when the CanDelete property of the IcxNavigator interface is True and the dataset is not empty.
The Edit button is enabled when the CanEdit property of the IcxNavigator interface is True and the dataset not in edit mode.
The Post and Cancel buttons are enabled when the CanEdit and IsEditing properties of the IcxNavigator interface are True.
The GotoBookmark button is enabled when there is a previously saved bookmark.
The ADefaultIndex parameter specifies the button whose status is checked.