Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dragging the other of fields names.
Message
 
To
24/02/1998 14:05:51
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00080530
Message ID:
00080969
Views:
25
>>>In the setup Wizard under Step 1 the 3rd window to the right
>>>is titled Selected Fields. You can order your fields by dragging
>>>the box on the left up or down. I would like to use this option in my program. Does anybody know where I can find an example of this or how I can get started on coding this dragging method?
>>Robert,
>>
>>use list and make the Mover property .T.. It only works with lists that have a rowsourcetype of array or none.
>---
>Hi Jim and thanks for answering..
>I would like to use this option in a GRID. A GRID does not have
>a mover progerty in vfp50. Is there a way? :)))))

Robert,

No a grid does not have a mvoer proeprty and it gets its rows from a record source. The order of the records in the record source controls the order of the rows in the grid. If you want to change the order of the rows in the grid you need to change the order of the records in the recordsource.

It would be fairly complex to try and do this using the mover style buttons as the grid only really has one row at any point in time, the others are ghosts. You could use drag and drop of the grid but it would take a bunch of calculations of the position of the nouse at the start of the drag and then at the drop event and figuring out how many rows that constitutes and then replacing a sequencing field with the proper value to reposition the record in the index so it shows up in teh right position in the grid. Basically not something I want to do without charging some client a whole passel of money.

Perhpas you could step back from the implementation question and tell us about the design issue. What is the interface for, what is the data and why does it need to change positions? We might have an much easier approach for you to accomplish the goal.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform