I have a set of different buttons, all deriving from juce::Button, all of them has .setClickingTogglesState(true). I would like to have the ability to 'lock' the state of the button, such that after locking it the user can't click or alter the state (which would also mean no callbacks or state changes happen). How would i go about doing this?
Case in point, consider having 4 adjacent buttons, where one button has to be clicked (ie. a choice of 4 values). It would be logical not to be able to 'untoggle' the already toggled button, so the user has to select one of the choices.