Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drag and drop from list box to grid headers
Message
From
07/04/2005 14:09:04
 
 
To
07/04/2005 11:22:11
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01002315
Message ID:
01002387
Views:
21
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform