Results 1 to 4 of 4

Thread: Hot Spots

  1. #1

    Thread Starter
    Lively Member H-Zence's Avatar
    Join Date
    Jul 2002
    Posts
    94

    Hot Spots

    Hey guys, I'm just programming a menu right now and pretty much all I'm trying to do is detect when the mouse is moved over a certain rectangular area (in this case 126,127 To 281, 182 pixels) to move a shape control (which shows that it is highlighted) to that point. I know how to move the shape control , but any ideas for hotspots? Thanks.
    www.mindset1.com
    Religious Debate Forums

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Try the GetCursorPos API call, and check for a point in a RECT
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  3. #3
    Junior Member J.J. JOHNSTONE's Avatar
    Join Date
    Aug 2002
    Location
    J'ville
    Posts
    19
    Just a thought.

    An empty label positioned where you need and your code placed in mousemove event.
    J.J.


  4. #4
    Addicted Member jmiller's Avatar
    Join Date
    Jul 2002
    Location
    University of Michigan
    Posts
    238
    i've done similar things to that, where i have to check a bunch of rectangles. What i did was save them in a .dat file, and then read it and store it the the Rect_API type:
    Public Type RECT_API
    Left As Long
    Top As Long
    Right As Long
    Bottom As Long
    End Type
    then, you can have an array of rects and check them all.

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