Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using MouseMove to move an object; cancelling mouse moves
Message
De
23/04/2006 15:20:12
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Using MouseMove to move an object; cancelling mouse moves
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01115825
Message ID:
01115825
Vues:
58
I have a splitter class that works well except for the following two behaviors:

1. Unless the user moves the mouse slowly, its easy for the user's mouse movement to get ahead of the splitter being dragged. I move the splitter in the splitter object's MouseMove event. Should I be using a native Drag event instead?

I would like to make sure that the mouse's position stays LOCKED to the splitter being moved. Should I be using DOEVENTS and/or calling ThisForm.Paint() in my splitter's MouseMove() event?

2. My splitter checks for optional MinWidth properties for the linked containers being resized. When the splitter detects that it can't move any more in a specific direction, I would like to prevent the mouse from continuing to move in the direction it was moving.

Do I need to use an API call like ClipCursor (http://www.news2news.com/vfp/?group=14&function=118) or is there a way to do this in native VFP?

Thanks!
Malcolm
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform