Disable Mouse Move.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hey,
I've got 3 checkboxes, each with a mouse move event, the event being each
time the mouse is over one of them, a text is shows in a text box.

I want to disable the mouse move event on the other 2 check boxes when I
check one of the check boxes.

THANX for the help, and I'm sorry if this is a dumb question....
 
In the MouseMove event procedure, put code like below around your existing
code:

If Me.Check1 = False Then

' existing code

End If
 
you need to check the value of each check box once they are updated so if it
is set to true(selected) is should disable onMouseMove event of the other
checkboxes.
use this sample code on the afterupdate event:

if me.checkbox1 = true then
'here disable the mouse event on the other two checkboxes
me.checkbox2.onmousemove = false
me.checkbox3.onmousemove = false
else
'the value is false/unselected so enable all three events.
me.checkbox1.onmousemove = true
me.checkbox2.onmousemove = true
me.checkbox3.onmousemove = true
end if

you need to put this code in other two checkboxes afterupdate event. but you
need to change the number of checkbox accordingly, in order to disable
correct event for either of three.

hope it helps.
 
I think I didnt explained myself correctly...
I was thinking something like:

If checkbox.value then

(something to make the mouse move event on checkboxes 1 and 2 FALSE)

End If
 
Back
Top