Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DragDrop in Grid
Message
From
06/08/2003 23:20:42
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
DragDrop in Grid
Miscellaneous
Thread ID:
00817557
Message ID:
00817557
Views:
89
Hi All,

I have a Grid in VFP 7 whose recordsource is a cursor.

My challenge is to allow users to change the row order (ie move the rows) via dragdrop.

My original intention was that in the Mousedown event of the controls in the grid (textbox, spinner, combobox etc) to populate a form property with the X Y coordinates of the mouse and then in the mouse move event test if the mouse has moved by a set number of pixels before calling Drag(1). My problem to date is where to test and call the drag() event. The grids mousemove event doesn't appear to fire and the texbox's mousemove event doesn't fire if you move to another row or so it seems to me. Can anyone give me pointers.

I also have other code in the controls mousedown event that takes care of allowing the user to select multiple rows.

Any help greatly appreciated.
David
Next
Reply
Map
View

Click here to load this message in the networking platform