Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dragging and dropping
Message
 
 
À
30/06/1998 10:00:53
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00112881
Message ID:
00112911
Vues:
14
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform