This event is fired when a navigation event occurs on the page displayed within a BrowserCommandInput. This allows the add-in to determine how this navigation should be handled by the browser. The NavigationEventArgs provided by the event indicates which BrowserCommandInput triggered the event.
-------- Import ----------------- Global variables --------- -------- Connect the handler to the event. --------- -------- Event handler function definition --------- |
-------- Global variables ----------------- Connect the handler to the event. --------- -------- Event handler class definition --------- |
--------- Required include files. ------------------ Event handler class definition and global declaration. --------- class MyNavigatingURLEventHandler : public adsk::core::NavigationEventHandler { public: void notify(const Ptr<NavigationEventArgs>& eventArgs) override { // Code to react to the event. ui->messageBox("In MyNavigatingURLEventHandler event handler."); } } _navigatingURL; --------- Connect the handler to the event. --------- |