Private Sub CheckBox1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
commentary CheckBox1, "turlututu " & vbCrLf & " chapeau pointu" & vbCrLf & "vive les casquettes"
End Sub
Private Sub CheckBox2_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
commentary CheckBox2, "oui lui aussi " & vbCrLf & "il a droit a" & vbCrLf & "son commentaire"
End Sub
Private Sub CheckBox3_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
commentary CheckBox3, "blablabla " & vbCrLf & " blablabla" & vbCrLf & "blablabla"
End Sub
Private Sub calquetrans_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
calquetrans.Visible = False: commentaire.Visible = False
End Sub
Private Sub commentaire_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
calquetrans.Visible = False: commentaire.Visible = False
End Sub
Sub commentary(check, comm)
calquetrans.Visible = True
calquetrans.ZOrder 1
commentaire.Visible = True
With check
calquetrans.Move check.Left - 10, check.Top - 10, check.Width + 20, check.Height + 20
commentaire.Move check.Left + check.Width / 1.5, check.Top - commentaire.Height - 5
commentaire.Caption = check.Name & vbCrLf & comm
If commentaire.Top < 0 Then commentaire.Top = 0
If commentaire.Left + commentaire.Width > Me.InsideWidth Then commentaire.Left = Me.InsideWidth - commentaire.Width
End With
End Sub