Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Drawing lines

Author
Message
z i l c h vortex
17
Years of Service
User Offline
Joined: 20th Feb 2007
Location: united kingdom
Posted: 6th Jan 2009 03:49
Hey, im having a problem with getting the old x and y value of the mouse so i can draw a line from one point to the other when i click heres my code.




thank you

life is short but so am i
Dabbler
17
Years of Service
User Offline
Joined: 3rd Mar 2007
Location: Minnesota
Posted: 6th Jan 2009 06:28
Try this:



I hope it helps.


Whatever...
z i l c h vortex
17
Years of Service
User Offline
Joined: 20th Feb 2007
Location: united kingdom
Posted: 6th Jan 2009 15:41
It works thank you do you mind explaining it please.

thank you

life is short but so am i
Dabbler
17
Years of Service
User Offline
Joined: 3rd Mar 2007
Location: Minnesota
Posted: 7th Jan 2009 03:14 Edited at: 7th Jan 2009 03:18
Sorry I didn't give more explanation last night, I must have been getting tired. Here is the code again, this time with a lot of comments:



Once again, I hope it helps.

Oh yea, I made a couple of minor changes.


Whatever...

Login to post a reply

Server time is: 2024-11-25 12:30:20
Your offset time is: 2024-11-25 12:30:20