Gets an event that is fired when a mouse drag starts, (the mouse is pressed and moved).
-------- Import ----------------- Global variables --------- -------- Connect the handler to the event. --------- "command_var" is a variable referencing a Command object. -------- Event handler function definition --------- |
-------- Global variables ----------------- Connect the handler to the event. --------- "command_var" is a variable referencing a Command object. "MyMouseDragBeginHandler" is the name of the class that handles the event. -------- Event handler class definition --------- |
--------- Required include files. ------------------ Event handler class definition and global declaration. --------- class MyMouseDragBeginEventHandler : public adsk::core::MouseEventHandler { public: void notify(const Ptr<MouseEventArgs>& eventArgs) override { // Code to react to the event. ui->messageBox("In MyMouseDragBeginEventHandler event handler."); } } _mouseDragBegin; --------- Connect the handler to the event. --------- |
-------- Event handler function definition ----------------- Connect the handler to the event. --------- "MyMouseDragBeginHandler" is the name of the class that handles the event. "command_var" is a variable referencing a Command object. |