Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fooling around with mousemove-
Message
From
24/06/2000 03:40:32
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00383689
Message ID:
00384212
Views:
31
>In fooling around with mousemove event for a graphic object on a form, I wish to have the object move left and right in conjunction with the mouse moving left and right. How do you apply the nXCoord, nYCoord to do this. Thank you.


Tim,
In those cases I keep 2 properties holding starting nXCoord, nYCoord. I change left, top by calculating the difference of newXCoord, storedXCoord, newYCoord, storedYCoord. Here as each left, top setting completed also 'stored' coords are set to 'new' ones in order to keep calculation simple and prevent jumping movements (otherwise I would need to hold original left, top too).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform