Hi, I have a VST which has inside a component that can have lots of ResizableWindow (RW). Those RW have a content component inside. I need to keyboard-focus those RW, like any multiple window enviroment, and repaint the customized tittlebar (and more) depending if they have the focus or not. So I implemented something as simple as this:
[code]void DockWindow::focusGained(FocusChangeType /cause/)
void DockWindow::focusLost(FocusChangeType /cause/)
However the windows dont work as expected. When you click on one of them, they call focusGained() on the clicked windows, and just right after that, focusLost() ON THE SAME WINDOWS (so the old window that has the focus isn’t repainted). Am I doing something wrong?
Note: I cannot use MultiDocumentPanel or DocumentWindow due to the high customization degree I need. And… I’m still using juce 1.52, I’ll upgrade soon.