‘General Declarations
…
Dim c As Boolean 'img 2
Dim d As Boolean 'img 3
Dim e As Boolean 'img 4
Private Sub Form_Load()
…
b = True
c = True
d = True
e = True
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If a = True Then
a = False
Image1.Picture = LoadPicture(App.Path & "\RECORD.jpg")
Image2.Picture = LoadPicture(App.Path & "\RESET.jpg")
Image3.Picture = LoadPicture(App.Path & "\STOP.jpg")
Image4.Picture = LoadPicture(App.Path & "\PLAY.jpg")
If b = False Then Image1.Picture = LoadPicture(App.Path & "\onClick RECORD.jpg")
If c = False Then Image2.Picture = LoadPicture(App.Path & "\onClick RESET.jpg")
If d = False Then Image3.Picture = LoadPicture(App.Path & "\onClick STOP.jpg")
If e = False Then Image4.Picture = LoadPicture(App.Path & "\onClick PLAY.jpg")
End If
End Sub
Private Sub Image1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If a = False Then
a = True
Image1.Picture = LoadPicture(App.Path & "\mouse RECORD.jpg")
End If
If b = False Then Image1.Picture = LoadPicture(App.Path & "\onClick RECORD.jpg")
End Sub
Private Sub Image1_Click()
b = False
c = True
d = True
e = True
…
Image1.Picture = LoadPicture(App.Path & "\onClick RECORD.jpg")
…
End Sub
Private Sub Image2_Click()
…
b = True
d = True
e = True
c = False
Image2.Picture = LoadPicture(App.Path & "\onClick RESET.jpg")
…
End Sub
Private Sub Image2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If a = False Then
a = True
Image2.Picture = LoadPicture(App.Path & "\mouse RESET.jpg")
End If
If c = False Then Image2.Picture = LoadPicture(App.Path & "\onClick RESET.jpg")
End Sub
Private Sub Image3_Click()
…
b = True
c = True
e = True
d = False
Image3.Picture = LoadPicture(App.Path & "\onClick STOP.jpg")
End Sub
Private Sub Image3_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If a = False Then
a = True
Image3.Picture = LoadPicture(App.Path & "\mouse STOP.jpg")
End If
If d = False Then Image3.Picture = LoadPicture(App.Path & "\onClick STOP.jpg")
End Sub
Private Sub Image4_Click()
…
Image4.Picture = LoadPicture(App.Path & "\onClick PLAY.jpg")
b = True
c = True
d = True
e = False
…
End Sub
Private Sub Image4_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If a = False Then
a = True
Image4.Picture = LoadPicture(App.Path & "\mouse PLAY.jpg")
End If
If e = False Then Image4.Picture = LoadPicture(App.Path & "\onClick PLAY.jpg")
End Sub