Link to home
Start Free TrialLog in
Avatar of actionjackson88
actionjackson88

asked on

How to highlight the client area while holding down mouse button

hi

i want the user to be able to highlight the client area (where my app will have drawn a graph of voltage against time) when they left click and drag the mouse sideways. does anyone know how to do this?

cheers.
SOLUTION
Avatar of DanRollins
DanRollins
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of actionjackson88
actionjackson88

ASKER

thanks, it was pretty simple in the end.
What technique did you use?
i mostly used the principles in the latter two techniques

that is on left click i record the point which was clicked, then as the mouse is being dragged i invalidate the window and use the mouse's last co-ordinates as the end marker for the highlight. i then draw a black region before I draw my graphs lasting from the starting point to the last point.

i suspect you think that your answer is dissimilar to the other answers? you're right but i found the tracker link helpful and intersting reading, and it may serve a purpose at a later stage. so i split the points in three ways.
Thanks.  I only asked in order to increase the future value of this thread should a person come upon it in a search.