This event is fired when the user clicks the "Close" button on the palette. You can choose if the "Close" button is available or not when you initially create the palette. When a palette is closed, it still exists but is change to invisible so you can still interact with it and retrieve any needed information and can make it visible again. Use the deleteMe method to delete the palette.
-------- 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 MyClosedEventHandler : public adsk::core::UserInterfaceGeneralEventHandler { public: void notify(const Ptr<UserInterfaceGeneralEventArgs>& eventArgs) override { // Code to react to the event. ui->messageBox("In MyClosedEventHandler event handler."); } } _closed; --------- Connect the handler to the event. ---------
|