-
Jan 3rd, 2000, 10:21 AM
#1
Thread Starter
Junior Member
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
-
Jan 3rd, 2000, 10:26 AM
#2
Fanatic Member
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.
-
Jan 3rd, 2000, 10:29 AM
#3
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
kvision@gate.net
-
Jan 3rd, 2000, 10:32 AM
#4
Member
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: craigkovatch@compuserve.com
ICQ#: 9872708
-
Jan 3rd, 2000, 10:48 AM
#5
Hyperactive Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|