Disable toggling ImageButton with rightclick

Hi, guys!

I've noticed that the ImageButton can be toggled on/off both with left and right mouse clicks. I want to disable toggling ImageButton by right click.

Is there any convenient way to do this?

Thanks in advance!


Best regards,


You could override it and use your own overridden mouseDown/Drag/Up methods that don't call the superclass methods if the right button is down?

thanks a lot, Julian!:)

And just want to add:

During my work I need to work with several different frameworks and programming languages, but JUCE remains the one I love the most.

Thanks for such an amazing masterpiece!

Coding with JUCE I can feel myself like i'm in the home :)

Thanks, glad you're enjoying it!