|
-
Nov 8th, 2002, 11:25 PM
#1
Thread Starter
Lively Member
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
-
Nov 9th, 2002, 12:49 AM
#2
Good Ol' Platypus
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)
-
Nov 11th, 2002, 10:27 AM
#3
Junior Member
Just a thought.
An empty label positioned where you need and your code placed in mousemove event.
J.J.

-
Nov 12th, 2002, 10:30 PM
#4
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|