This website works better with JavaScript.
Home
Help
Sign In
DISTRHO
/
JUCE
mirror of
https://github.com/DISTRHO/JUCE
Watch
1
Star
0
Fork
0
Code
Releases
1
Activity
Browse Source
Made ImageButton take into account the state of Component::setIgnoresMouseClicks
tags/2021-05-28
jules
10 years ago
parent
7cc522b7e5
commit
be3dbd5b3e
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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;
Write
Preview
Loading…
Cancel
Save