Update multi windows simultaneously


i have an application that user may have more than one window(DocumentWindow) on the desktop. some of these windows may be related to each other somehow so they should update their content with respect to each other. the problem is that when user open new window in my app this window gets active and paint function in other windows doesn’t work any more until user click on one of them. i want to know how i can paint(repaint/resize) content of multi windows simultaneously even so the window isn’t active.


use a manager that owns all of the windows to refresh them.


i know that i should use a manager but have no idea how to do it. can you give me more details ?


Take a look at the Windows demo cpp file in the JuceDemo example project.

the class creates 4 separate windows and owns them.