So I’ve subclassed ImageButton and have a method clicked (const ModifierKeys& modifiers) which gets called and I check for the modifier key… all that works fine… but the problem is that the button changes state visually before it reaches clicked (const ModifierKeys& modifiers)
I want to change the ImageButton image to disabled if the Alt modifier is down when the button is clicked… which all works fine but the button is being repainted ‘down’ & ‘up’ before I get the clicked() call from Button::sendClickMessage… so the button flashes the normal ‘down’ image before I get the chance to change the image.
Is there any way to get the modifier before the button is repainted?
Thanks,
Rail