Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Drag and Drop problems in forms.
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement