Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
lol @ my old code
#2
Hehe, creating boxes and checking if user clicked the box when clicking on screen. Again, pretty lousy lol

creating box
Code:
With UsernameboxRECT
    .top = 275
    .Left = 274
    .Right = 530
    .Bottom = 293
End With
Code:
Function InRECT(ByRef RECT As RECT, MouseX As Integer, MouseY As Integer) As Boolean
InRECT = False
    If RECT.top < MouseY And RECT.Bottom > MouseY And MouseX > RECT.Left And MouseX < RECT.Right Then
        InRECT = True
    End If
End Function
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)