I’m having a little issue when I resize my contentcomponent and move the DocumentWindow at the same time
I don’t want just to resize the ContentComponent of my app, I want to move the DocumentWindow that holds it so a certain part of my ContentComponent is in an specific position of the screen.
So if my window goes from:
(you see the center bit is in the same position but for that i have to move my Document Window
I try to do it this way
myContentComponent->setSize(newWidth, newHeight); Component* p = myContentComponent->getParentComponent(); if (p) p->setTopLeftPosition(newXposition), p->getScreenY());
The thing is that doing it that way i think the window is repaint twice (one for the resize of the component and other for moving it). What I would like to do is everything at the same time so I don’t get a blink on the app.
I don’t know if that’s possible or I’m being superposh. Any idea so I can have my supercool app?