Disable toggling ImageButton with rightclick


#1

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,

Gammer.


#2

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?


#3

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 :)


#4

Thanks, glad you're enjoying it!