Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fooling around with mousemove-
Message
From
04/07/2000 01:10:18
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00383689
Message ID:
00387953
Views:
35
>>>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).
>
>Thanks Cetin, that basically worked. If I want to make a control completely disappear, will the destroy event or something such do it?


I use removeobject from within control or outside :
this.aprent.removeobeject(this.name)
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
Reply
Map
View

Click here to load this message in the networking platform