|
-
Jan 27th, 2004, 08:00 AM
#1
Thread Starter
Hyperactive Member
x,y lines following mouse
i'm using a selection rectangle to select an area. to make it easier to select the area i make the cursor a crosshair.
what i would really like to do is for there to be four lines that follow the mouse cursor
Code:
y line
|
|
x Line |
------------ -- -- -------------------
|
|
|
that way the user can easily see the area he is about to select before he selects it.
I'm not really sure how to do this. i can get the x,y location of the mouse easy enough.
and i guess i'd have to use the mousemove event to constantly re-get the x,y position.
but i'm not sure how to go about drawing the lines, and putting the rest of it together.
any pointers would be gratefully received
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
|