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 / Moving a "window" with the mouse, but it doesnt if mouse moves out of area

Author
Message
Rixarn
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location:
Posted: 3rd Jul 2004 05:58
please can anyone tell me whats wrong with this?? If i move the mouse too fast it doesnt move the window...


thanks
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 3rd Jul 2004 06:46
I might rework this
if Overarea()=1
if mouseclick()=1


to be
if Overarea()=1 AND mouseclick()=1...


* DBP_NETLIB_v1.4.3 - July, 2004 * Click Logo
Rixarn
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location:
Posted: 3rd Jul 2004 07:10
i did it but its the same, nothing changes..
if i move the mouse slowly its ok, the window moves with the mouse... but if I move the mouse too fast it doesnt work...
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 3rd Jul 2004 09:05
The mouse doesn't move very smoothly so if you move it fast the pointer leaves the title bar.

Run this code and move the mouse fast an you will see the jumps.


To get around it you need to set a flag when the user clicks the mouse in the title bar. Then move the window while the flag is set. Then when the user releases the button unset the flag.

Example


can i scream
Rixarn
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location:
Posted: 3rd Jul 2004 09:13
THANKS A LOT MAN!!!! ur great

Login to post a reply

Server time is: 2024-11-26 23:26:45
Your offset time is: 2024-11-26 23:26:45