f97ao
09-10-2005, 08:41 PM
I'm just getting close to being finished with my new yber interface. BUT now I have a serious problem that the background don't repaint when I move the interface fast enough. So it leaves irritating trails behind. Basically it looks like you are painting with the window in the viewport.
Does anyone have a clue how I could address this issue?
This is what the program does:
I have several dialogfloaters. When a button is pressed and the mouse is moved within one of the dialogs, this floater will be moved. The repainting is perfect as long as I only have 1 dialogfloater. However the problem begins when we have 2 floaters. I simply move the second dialogfloater when the first one is moved, so they follow each other. When this happens, the viewport will not be redrawn.
The strange thing is that if I use a normal "top toolbar" (the blue one in the top) to move the window, then it works fine. All the floaters move smoothly and everything is repainted. However I have already created my own "toolbar" in the top that I would like to use instead.
I tried a bunch of things to get around this problem, but nothing worked fine. For example:
gw.updateScreen() -- nothing happens
completeRedraw() -- well works, but is pure madness since it will force a complete redraw of all geometry which is slow.
Any ideas? Would suck to throw away my new interface. :(
/Andreas
Does anyone have a clue how I could address this issue?
This is what the program does:
I have several dialogfloaters. When a button is pressed and the mouse is moved within one of the dialogs, this floater will be moved. The repainting is perfect as long as I only have 1 dialogfloater. However the problem begins when we have 2 floaters. I simply move the second dialogfloater when the first one is moved, so they follow each other. When this happens, the viewport will not be redrawn.
The strange thing is that if I use a normal "top toolbar" (the blue one in the top) to move the window, then it works fine. All the floaters move smoothly and everything is repainted. However I have already created my own "toolbar" in the top that I would like to use instead.
I tried a bunch of things to get around this problem, but nothing worked fine. For example:
gw.updateScreen() -- nothing happens
completeRedraw() -- well works, but is pure madness since it will force a complete redraw of all geometry which is slow.
Any ideas? Would suck to throw away my new interface. :(
/Andreas
