Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drag and Drop problems in forms.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Drag and Drop problems in forms.
Divers
Thread ID:
00457475
Message ID:
00457475
Vues:
68
Hello,

I have a very simple form that has one Shape that needs to be dragged and moved around the form. It moves around but not like how I expected. It only will move to the location of the mouse if the mouse moves WITHIN the borders of the shape.

So if I click and drag and drop all within the borders of the shape it'll move to that location. But if I click and drag and drop outside of the shape it does nothing.

Here is my code segment.

IN THE MOUSEDOWN EVENT
``````````````````````````````````````````````
this.drag(1)


IN THE MOUSEUP EVENT
``````````````````````````````````````````````
this.drag(2)


IN THE DRAGDROP EVENT
``````````````````````````````````````````````
oSource.Left = nXCoord
oSource.Top = nYCoord


Obviously I'm missing something, but I just don't see it. If anyone could point me in the correct direction I'd appreciate it.

Thanks,
Bryan
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform