PCPT
Messages postés13272Date d'inscriptionlundi 13 décembre 2004StatutMembreDernière intervention 3 février 201847 1 déc. 2007 à 12:46
salut à tous,
voir ce tuto pour (entre autres) déplacer le curseur par l'API que jmfmarques t'a indiqué
http://www.vbfrance.com/codes/VACANCES-MR-MULOT-TUTORIAL_34236.aspx ++
<hr size="2" width="100%" />Prenez un instant pour répondre à [infomsg_SONDAGE-POP3-POUR-CS_769706.aspx ce sondage] svp
argentin7
Messages postés125Date d'inscriptionvendredi 10 août 2007StatutMembreDernière intervention14 juillet 2008 1 déc. 2007 à 14:53
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)'If etataccrochage True Then
accrochage x, y, UBound(tabnoeud)
End If
Private Function accrochage(x As Single, y As Single, nombre_denoeud As Integer)
For t = 0 To nombre_denoeud
If ((tabnoeud(t).x - x) ^ 2 + (tabnoeud(t).y - y) ^ 2) ^ (0.5) < 4 Then
x = tabnoeud(t).x
y = tabnoeud(t).y
Shpcircle.Top = y - Shpcircle.Height / 2
Shpcircle.Left = x - Shpcircle.Width / 2
Call SetCursorPos(x, y)
End If
Next
End Function