The hitTest Doesn't Response To MouseDown ?

loyal

Well-known member
Joined
Jul 29, 2003
Messages
102
Hi All I am trying to build A Telephony Application that has several buttons

with mobile interface most of these buttons are curved

I used the Path technique to get the users click on these buttons

when I used the TranslateTransform & RotateTransform

the Path doesnt response to the Form MouseDown

by using this syntax If B2Path.IsVisible(e.X, e.Y) Then Do Something

Heres all of my Code

in The OnPaint I posted this code

Button 2 Draw & Filling

e.Graphics.ResetTransform()
AngleX ---------AngleY

e.Graphics.TranslateTransform(47, 48)
e.Graphics.RotateTransform(-20)
e.Graphics.DrawPath(pen, B2Path)


End Sub

in the Form Load I posted this code

B2Path.AddRectangle(New Rectangle(298, 133, 22, 30))

End Sub


in the Form_MouseDown I post this code

If B2Path.IsVisible(e.X, e.Y) Then
MessageBox.Show("B2Path")
PrintingNumber(2)

Exit Sub
End If
End Sub
 
Back
Top