GUI glitching

Greyowlsl

Mlak Mlak
Local time
Today, 18:53
Joined
Oct 4, 2006
Messages
204
Hi,

I have some buttons on my form that have highlighting commands on them and they all seem to glitch when i get in proximity of them. Anyone know why this is and how it can be prevented?

Thanks,

Leon
 
Do you have any "mouse move" or on "got focus" code running?
 
ghudson said:
Do you have any "mouse move" or on "got focus" code running?

Yes i have "mouse move" commands on them to change color, also there are boxes around them setting the colour back.

Code:
'Button highlighting comand
Private Function ButtonSetter(CtlName As String)
Dim ctl                As Control
    For Each ctl In Me.Controls
        If ctl.ControlType = acCommandButton Then
            If ctl.NAME = CtlName Then
                ctl.ForeColor = vbBlue
                Else
                ctl.ForeColor = vbBlack
            End If
        End If
    Next ctl
End Function
 
The problem is the mouse move stuff. I just had a similar situation and got fed up with it and removed that code so I didn't have events on the mouse move. I suspect it's just that Access is not that efficient with screen updating.
 

Users who are viewing this thread

Back
Top Bottom