Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fooling around with mousemove-
Message
De
24/06/2000 03:40:32
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00383689
Message ID:
00384212
Vues:
26
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform