Two events are native to the DBNavigator class, both allowing you to trap the push of one of its buttons and initiate any special processing that you want to implement.
The BeforeAction fires when a button on the navigator is clicked but immediately before the default action for that particular button is executed.
is fired when any type of click event occurs. This includes a mouse click, the spacebar being pressed when the navigator has focus, or the Btn Click method being called. The default action for the associated button will be executed unless overridden by the event handler.
One important item to remember when designing your application around the DBNavigator is that the dataset object, not the DBNavigator, encapsulates the dataset's navigation capabilities. The navigation buttons only initiate the execution of the dataset's methods. If the application needs to interrupt or manipulate these abilities, it should point directly to the dataset.
Was this article helpful?