Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Nick's new GridDragDropper class
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00502599
Message ID:
00502659
Vues:
15
>>Hi Nadya,
>>
>>>Nick,
>>>
>>>I've downloaded and played a little with your new class. It's great! Now questions: suppose, I want to highlight several rows in grid (using Cetin's grid, for example) and move them to the ListBox. Is it possible?
>>
>>Not right now, but it is possible.
>>I just didn't deal with GridDragDropper and List/Comboboxes yet. There is the question also, how to decide what you are going to drop - one field or several.
>
>Right. Let's start from one, then it could be changed.
>
>>GridDragDropper may be modified to drag the whole records from the grid.
>>I need more feedback on possible scenarios.
>>
>Could it be optional? :) Say, lMoveWholeRecord property will control this behavior.

Sure it can. But where are you going to move the whole record? Another grid based on the table with the same or similar structure using the same field names? If not, then it will require some .onDrop() method where you will write the code yourself in the class instance. Or you will write that code in target control's DragDrop() method.

>
>>> Can I use your Grid Highlighter + this new class at the same form?
>>
>>Yes, they do not interfere at all.
>>GDD functionality may be merged with GHL in one class.
>
>Ok, great.
>>
>>>If I drop them to the EditBox (as in your form sample), can I use some separator (say, space between items)?
>>
>>Yes it can, I just wanted to keep the dragged value as is.
Besides, it's the way any other app does the text dragdropping.

>>
>Ok, I'll look into Form's code then :)
>
>>>Thanks in advance and keep a good work!
>>
>>I will. :)
>
>I know :)
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform