Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drag and Drop problems in forms.
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Drag and Drop problems in forms.
Miscellaneous
Thread ID:
00457475
Message ID:
00457475
Views:
66
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
Next
Reply
Map
View

Click here to load this message in the networking platform