Dear JUCE geeks,
I have a small “bug” in one of my porgram that I can’t find a simple solution.
I have an image button with both normal image and an overImage.
When the mouse enter the button, the overImage is displayed. Then if the user clicks the button, my program needs to hide the button and reset the position of the mouse to the center of the screen;
A few seconds later I make the button visible again (the mouse was still at the screen center I.e. not over the button). But the button still shows the “overImage” instead of normal Image. then if the mouse is moved by the user, the button returns to the normal image.
I suspect a problem with the mouseexit not been called.
CenterMouse(); // move louse to screencenter (outside button)
Rep1Button->setState(Rep1Button->buttonNormal ); //tried this but didn't worl
Rep1Button->repaint(); //tried this but didn't work
When I do a Rep1Button->setVisible(true); the overImage is displayed until user move mouse.
How to avoid this ?
Thanks in advance for any help