Prevent user interaction with component?

Is it possible to prevent the user clicking on buttons etc so they can be used for display purposes only?

One way is to call setInterceptsMouseClicks (false, false) in the constructor. This way mouse clicks are simply ignored.
https://docs.juce.com/develop/classComponent.html#ac9fdcb595c1878201a641de2e1159aec

1 Like

works perfectly thanks!