Skip to main content

TcxNavigatorControlButtons.DoButtonClick(Integer) Method

Implements the appropriate functionality for each non-db navigator button.

Declaration

procedure DoButtonClick(ADefaultIndex: Integer); override;

Parameters

Name Type
ADefaultIndex Integer

Remarks

The DoButtonClick method overrides the TcxCustomNavigatorButtons.DoButtonClick method implementation and provides default actions for non-db navigator buttons. This method is called after a navigator button has been clicked and you did not prohibit default click processing in an OnButtonClick event handler.

The ADefaultIndex parameter specifies the clicked button index within the Buttons collection. According to this index, the appropriate action should be executed.

In contrast to db navigator buttons, whose actions are dataset-specific, the TcxNavigatorControlButtons.DoButtonClick method associates navigator buttons with the IcxNavigator.DoAction interface method implementation.

See Also