-
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. :D
-
Try the GetCursorPos API call, and check for a point in a RECT ;)
-
Just a thought.
An empty label positioned where you need and your code placed in mousemove event.
-
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.