Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drag buttons on a grid
Message
 
To
22/05/1997 16:05:18
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00032819
Message ID:
00033333
Views:
45
>/ On my form is a grid full of children. These child records are
>ordered on
>/ parent key and an arbitrary ordering field. There is nothing
>alphabetical
>/ or numeric in the data to use for ordering, but they still need to be
>in a
>/ certain order. At the moment, the arbitrary order field can be edited
>by
>/ the user. Also, the user can click on a record in the grid, and then
>add a
>/ child with the arb.-order incremented so that the new child follows
>the
>/ selected one. However, I would rather use drag buttons, such as you
>have
>/ in the table designer, so that users never see arbitrary order
>numbers.
>/ How do I make those? Do they work well with a grid or do I need to
>replace
>/ it with a listbox or something? (I hope not.)
>
>Why not a simple textbox in an invisible column? So they never see it...
>and yet it can be used for anything.

I'm not sure how that relates to my problem. Getting the arbitrary order numbers out of sight is not a problem. I'm interested in how to make drag buttons. I can sort of imagine solutions involving the mousemove event and mouse positions, but I figure that there is a right way to do this, or even some code somewhere. Can anyone .MouseMove me in the right direction or .DragDrop me on a piece of code? As Luis Guzman might say, THIS.Thanks. Or maybe I should say
oGuzman = CREATEOBJECT(LuisGuzman)
oGuzman.Thanks
RELEASE oGuzman :)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform