Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What record in a grid when an item is dropped on it.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00038239
Message ID:
00038284
Vues:
37
>>>I have a grid in which a user can drop an item onto one of the columns. How do I determine what record in the grid that I've just dropped on given only the x & y coordinates. Relative or Active Row properties could be anything and Relative row cannot be set at runtime anyways.
>>>
>>>Thanks,
>>>Steve Despres
>>
>>Steve,
>>
>>Still doing the drag/drop stuff, eh?
>>
>>Unfortunately, both Active and Relative Row properties return 0 when the is either "above" or "below" the grid. Therefore, the user will have to click on a cell within the visible grid. Once that's done then all you have to do is figure the offset from where the current relative row is based on the mouse position and row height. Unless, of course you've got the row height set to -1, in which case you'll have to calculate the row height based on the font size. Tricky at best.
>>
>>George
>>
>>PS Yeah, BellSouth still hasn't come.
>
>George,
>
>D & D seems to be a big thing with this product. Everything visual. Nice concept if we can get it. Everything else about it works great even auto scrolling which is why .Active & .Relative rows could be anywhere. And I can't make the user click a cell because he's dragging something somewhere.
>
>I waited 2 days for GTE and then got connected only after calling again and ragging.
>
>Steve

Steve,

How are you doing the scrolling? .DoScroll?

George

PS 2 days!!! I wish it had only been 2 days. It's right now at 11 and counting.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform