Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dragging and dropping
Message
From
30/06/1998 10:06:38
 
 
To
30/06/1998 10:00:53
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00112881
Message ID:
00112911
Views:
15
I'll try that. Thanks!

-Michelle





>Michelle,
>First yes possible. For a quick start, set dragmode to automatic for a control, and then on some other control (that could control be dropped), in dragdrop code write your "get dropped object PEM" code. oSource is a reference to "dragged" object. A very simple code D&D :
* A textbox with dragmode set to auto - ie: text1
>* Form dragdrop
>LPARAMETERS oSource, nXCoord, nYCoord
>oSource.left = nXcoord
>oSource.top = nYCoord       && Textbox position changes
>
>* Another textbox dragdrop code
>LPARAMETERS oSource, nXCoord, nYCoord
>this.value = oSource.value && Set value to dragged object's value
For grid it would be quite same but the real problem is dragging and scrolling at the same time. I had some code for it somewhere but as I remember scrolling wasn't so smooth. I'll send it to you if I ever find.
>Cetin
Previous
Reply
Map
View

Click here to load this message in the networking platform