View Single Post
Old 03-28-2018, 09:56 AM   #1
MLN
Human being with feelings
 
MLN's Avatar
 
Join Date: Mar 2018
Location: Portugal
Posts: 7
Default Different Double Cilck Behaviours for each kobs

I have been trying to figure this out without success. I have 3 knobs and I want them to react differently when the user double-clicks them: 1 knob must reset to 0, and the other 2 will do nothing when double-clicked on.

I know there's a IGraphics::OnMouseDblClick function that controls the behavior of double clicking... and my initial idea was to make two copies of that function and modify them to my liking, but the problem is that I can't understand *how* OnMouseDblClick is called... so I can't just go to the code and say:

"Okay, whenever a knob is double-clicked on, use OnMouseDblClickCustom instead of the regular OnMouseDblClick."

And if I don't know how to do that, I certainly don't know how to go a step further and call different double-click functions for different knobs.

Any help would be greatly appreciated!!
MLN is offline   Reply With Quote