Skip to content

CustomComponent as indicator for mouseExit / mouseEnter #566

Answered by damiensellier
Tonfisch asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there's some info about it here :
#361 (comment)

You need to create a custom component sitting below your slider with "component is at the back".

Save your panel, close and open it again to redraw it with those position properties.

You can use Juce triggers mouseEnters() and mouseExit()
https://docs.juce.com/master/classMouseListener.html#a479dc784712648193bdc236b2c34e8bd

Yeah, I agree, when you have two component stacked up, the custom component has to be bigger than the slider.
When you go over the custom component it triggers the mouseEnter() and this is what you'll need to reset the message or replace it with the "default" one.

So the custom component working only if you want to r…

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
10 replies
@Tonfisch
Comment options

@dobo365
Comment options

@dnaldoog
Comment options

@Tonfisch
Comment options

@dnaldoog
Comment options

Answer selected by Tonfisch
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants