View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Rob van Gelder[_4_] Rob van Gelder[_4_] is offline
external usenet poster
 
Posts: 1,236
Default Mouse-move flicker, modeless form & shape selected

Running the same on Windows XP.
I created a modeless userform with a hollow mousemove event.
Shape border doesn't flicker no matter what I do.

What shape are you using? Is the shape on the worksheet or in the form?


It could be a graphics driver issue, but it's strange that the border is
redrawing in the first place. Maybe I just don't notice it on my computer.

Flickering is caused when the screen is updated before the graphics are
fully redrawn.
The first frame updates the screen with the border being cleared, the second
frame updates the screen with the border drawn. Which appears as a flicker.

In the graphics world, they have a concept of double buffering. The screen
is only updated once the graphics is ready to be displayed.

Not that this has much to do with Excel, just thought it would be
interesting to know...
Other than that, I'm not a lot of use on this problem.

--
Rob van Gelder - http://www.vangelder.co.nz/excel


"Paul Stevens" wrote in message
...
I have MouseMove code in my Modeless form which works
fine. However if a shape is selected its border and
handles flicker vigorously while the mouse is over any
control with mousemove code.

I created a test form, no controls, minimal code to show
the form vbmodeless and the opening and closing lines of
the form's mouse move event.

Run the form, select a shape, move or merely hover the
mouse over the form and the selected shape border flickers.

If the form window is active the flicker is considerably
less, but still noticeable. I do not want to disable
screenupdating or switch Excel / form windows.

Any ideas how to eliminate or reduce this flickering
border much appreciated. XL2K, not updated.

TIA
Paul