Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drag and drop from list box to grid headers
Message
De
07/04/2005 14:09:04
 
 
À
07/04/2005 11:22:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01002315
Message ID:
01002387
Vues:
16
>I'm working on an interface in which I have a listbox populated with potential column headings for a grid. The grid would start with one blank column with a header caption that says something like "(drag data item here)"... The user could then select an item from the list and drag the item to that column header. At that point the column header caption would change to the name of the list item, query the data and populate the grid rows with the data, and add a new 'blank' column to allow additional data to be pulled.
>
>Does this sound feasible? Any coding suggestions on getting the drag and drop to work?
>

Sounds reasonable. You're probably better off using the OLE drag and drop mechanism than VFP's native mechanism. It gives you more fine-grained control.

If you have the Hacker's Guide, you'll find a good overview and some examples in the reference section. Look up "OLE drag and drop" and read all the associated topics as well.

Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform