Results 1 to 5 of 5

Thread: 3rd time lucky foir mousemove events (Perhaps)

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Location
    cardiff
    Posts
    17

    Post

    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


  2. #2
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523

    Post

    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.


  3. #3
    Guest

    Post

    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

  4. #4
    Member
    Join Date
    Jan 1999
    Location
    Gig Harbor, WA, USA
    Posts
    48

    Post

    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

  5. #5
    Hyperactive Member
    Join Date
    Sep 1999
    Posts
    305

    Post

    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
  •  



Click Here to Expand Forum to Full Width