I think you would want to do something like this:
-Create your own custom knob class that inherits whatever control you are currently using.
-Add a private/protected variable. Something like bool bResetOnClick
-Add a function to change the variable. Something like void SetOnClick(bool x){bResetOnClick = x;}
-In the plugin constructor where you initialize the knobs, call the new function to set the bResetOnClick
-Override OnMouseDblClick to look at the bResetOnClick. If it is true, do the same code that is in the base class.
I don't think you want to start messing with the base class, although you could if you want.
|