-
all i need to do this when the cusor moves over a certain area of a map the word Cardiff appears in textbox, the cordinates are X = 2040 And Y = 2280. this is what i have come up with so farPrivate Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Picture1.Picture = "2040" and "2280" Then
Text1.Text = "Cardiff"
End Sub
please help
-
Maybe this will help:
If X = 2040 And Y = 2280 Then.
I hope this is what you mean.
------------------
Visual Basic Programmer
------------------
PolComSoft
You will hear a lot about it.
-
Hey there. I see your problem now..
1.) If you use that setting it you are telling it to do an even on that ONE pixil alone. You need to set an AREA.. Not just the one pixel..
2.) The pixel setting you are using is WAY outside the 1024x768 Pixel rang on a monitor. The mouse uses Pixels and not twips. So you will need to change numeric numbers.
I hope this is helpful... :)
------------------
John T. Mieske
Knight Vision Enterprises
[email protected]
-
1. First of all, maybe he only wants it to show up on ONE pixel, not an AREA.
2. Secondly, Monitors can display a lot larger than 1024x768. That is a hardware issue (video card/monitor size). Currently, I am running at 1280x1024. My friend is running at 1600x1200. Perhaps 'Valley Boy' uses a large monitor. Perhaps he has made an error with the twips/pixels conversion. In any case, 1024x768 is not the maximum monitor size.
------------------
(¯`·.¸¸.·´¯`·->ShadowCrawler<-·´¯`·.¸¸.·´¯)
Teenage Programmer
Visual Basic, HTML, C++, JavaScript
http://welcome.to/X12Tech
Email: [email protected]
ICQ#: 9872708
-
I don't quite understand why this is taking three tries. What was wrong with the other two? I answered in both of them, and both of the others are right.