View Single Post
  #1 (permalink)  
Old 12-24-2009, 07:45 PM
wm.chatman wm.chatman is offline
Basic4ppc Veteran
 
Join Date: Jan 2009
Location: Bayern, Germany
Posts: 489
Awards Showcase
Beta Tester 
Total Awards: 1
Default MouseMoveFunction

Hi

this is VB code. Need some assist. for writting to B4PPC code PLEASE.

Private Sub imgRight_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim X2, Y2 As Single
On Error GoTo Hell:
X2 = X
Y2 = Y

If (Start) And Button = 1 Then

With imgRight
If .Left - X1 + X2 > imgMargin.Left Then
imgRight.Left = imgMargin.Left
Else
.Move imgRight.Left - X1 + X2
End If
End With

End If


Hell:
Exit Sub
End Sub

Thank you and Merry Xmas and Happy New Year.

Best regards.

William
Reply With Quote