Hello,
Can I call Slider::mouseWheelMove() inside other Component::mouseWheelMove() which is in other area of plugin window? Actually I already use it and it works fine for me, but it doesn’t work for my client, and I wonder why?
I work on graphic eq. I have sliders for each parameter, and for each freq I have handle on the chart, I can drag those chart to change freq and gain. And I implemented changing Q parameter by mouse wheel moving. The simplest solution seems to be when I enter mouse on chart handle and start rotating wheel than just call mySliderQ.mouseWheelMove();
The usual solution is to change the parameter(s) (using beginChangeGesture+setValueNotifyingHost+endChangeGesture), and have the sliders use attachments to the parameters, which will then automatically update for you when the parameter(s) change.
IMO components shouldn’t be handling this sort of thing - they should hand off the user input events to a mediator that can handle them. This means the component’s have no dependencies on each other and also don’t handle any business logic, they can focus on the front-end logic.