Browse Source

Made ImageButton take into account the state of Component::setIgnoresMouseClicks

tags/2021-05-28
jules 10 years ago
parent
commit
be3dbd5b3e
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      modules/juce_gui_basics/buttons/juce_ImageButton.cpp

+ 3
- 0
modules/juce_gui_basics/buttons/juce_ImageButton.cpp View File

@@ -178,6 +178,9 @@ void ImageButton::paintButton (Graphics& g,
bool ImageButton::hitTest (int x, int y)
{
if (! Component::hitTest (x, y)) // handle setInterceptsMouseClicks
return false;
if (alphaThreshold == 0)
return true;


Loading…
Cancel
Save