Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can MouseMove move a form
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Can MouseMove move a form
Divers
Thread ID:
00421254
Message ID:
00421254
Vues:
52
I'm trying to develop a class which contains a graphic that will replace the title bar on a form. The object will stretch across the top of the form and will be invisible until the mouse hovers over it. The user can then use it to drag the form around the screen. When he unclicks and moves the mouse somewhere else, the graphic will dissapear.

I've got it mostly done using MouseMove, except it has some major flaws. As I'm dragging and suddenly move the mouse off the form quickly, the form flings out into space. I've used a Wait Window to track the forms coordinates, and the form flies to the lower-right limits of the coordinate space. Also, if I'm dragging and the mouse touches the menu system of the app or the taskbar of Windows, it does the same thing.

I've since read the warnings regarding using MouseMove and how it can cause cascading events, and I think I am experiencing such behavior. Is there a way to overcome this? Is there any other ways of doing this simply, without using the timer control?

Thanks in advance,

JL Miller
John L. Miller
Logikos, Inc.
"Solutions With Software"
Tel: 979-826-6034
Fax: 979-826-8845
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform