How can i send a signal from one component to another component?

Here I want to send a signal from A component to B component as soon as something happen in A component. And B component can repaint() or call some functions.
I would appreciate it if anyone can give me some advices,. Many thanks!

I would suggest having a look at either Listeners or ValueTrees. Both can accomplish what you’re asking. Check out the tutorial… :https://docs.juce.com/master/tutorial_listeners_and_broadcasters.html or there is a great video tutorial here: https://www.youtube.com/watch?v=pTJYowGub6o

Failing that, there is always carrier pigeon

2 Likes

Ok , thank you very much, I will try your way :grinning: