- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am trying to draw something on an object in viewport, for that, i am making a subclass of MouseCallBack and in the proc() i am using MOUSE_POINT, MOUSE_FREEMOVE and MOUSE_MOVE cases for drawing purpose.
The functionality which is added in MOUSE_POINT and MOUSE_FREEMOVE works fine, means, i click at any place on object, with mouse clicked, i drag and drawing happens on mouse position. But, when i release mouse, and move, drawing is still happening. I am trying to add a flag on mouse up, but i didn't know where to add.
I am not modifying override function.
Also, when i change MOUSE_FREEMOVE to MOUSE_MOVE, then drawing not happens on mouse drag.
Please suggest any ideas.
Regards,
Gopi.
Solved! Go to Solution.