Draggable window - Ghosting issue!

BlitzMax Forums/MaxGUI Module/Draggable window - Ghosting issue!

Scaremonger(Posted May) [#1]
Hi,
I'm trying to create a draggable window that doesn't have a titlebar. The code below sort of works, but I get a ghosting effect where the mouse seems to jump when drag it!

Run the following code, click and hold the mouse button and drag the window around the screen. The more you move it, the more the ghosting occurs!

RIGHT-CLICK to quit!

I've only tested this on Windows so far.

Any suggestions?




xlsior(Posted May) [#2]
FWIW, when I drag the window, the lage severely behind the mouse (e.g. the mouse travels the entire width of the screen, your window maybe 1/4th of the way)

The biggest problem here is that normally, windows suspends the drawing of the windows contents while you move the window. I think that whenever you're forcing it to redraw, windows isn't able to move the window at the same time, so it starts lagging behind.

Not sure what to do about that...


skidracer(Posted May) [#3]
This kind of works in FLTK:




Scaremonger(Posted May) [#4]
@skidracer: Thats it! - You are a star :)

Thanks.


skidracer(Posted May) [#5]
:)