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 / Draw box with mouse

Author
Message
Ant
20
Years of Service
User Offline
Joined: 27th Nov 2004
Location:
Posted: 8th Jul 2006 19:07
Hi all

Another silly question, but I tried to search for it on the forums and couldn,t find the answer. So could anyone please explain to me what I'm doing wrong ?



Thanks



Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 8th Jul 2006 19:43 Edited at: 8th Jul 2006 19:46
You have to store the old values when the mouse is clicked.


<edit> typo

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 8th Jul 2006 19:43
Sorry, not on a PC with DB, but try putting "Oldx=MouseX()" and "Oldy=MouseY()" just after "do".

Ant
20
Years of Service
User Offline
Joined: 27th Nov 2004
Location:
Posted: 8th Jul 2006 19:50
Sven B your code did not work, are you using dbp ?
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 8th Jul 2006 19:52 Edited at: 8th Jul 2006 19:52
It works in both DBC and DBP (I have both).

Maybe you tried the first version (I made a fault and edited afterwards).

Or maybe you just copy pasted it. You need to replace it with the part:


It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Ant
20
Years of Service
User Offline
Joined: 27th Nov 2004
Location:
Posted: 8th Jul 2006 20:19
Thanks Sven B !

Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 8th Jul 2006 21:01
You're welcome

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.

Login to post a reply

Server time is: 2024-11-27 15:38:57
Your offset time is: 2024-11-27 15:38:57