Information générale
Catégorie:
Codage, syntaxe et commandes
Michel, actually (sorry Jim),
If you are using VFP 6, then the new AMOUSEOBJ() function should be useful here.
Good luck,
Jim N
>>Does anyone know how to determine the position of a particular
>>grid cell in relation to the Form, specifically the TOP and LEFT
>>values ?
>>
>>The purpose is to be able to provide the user with the ability
>>to double click on a particular cell and have a control appear
>>exactly above that cell.
>>
>Michel,
>
>You can use MCOL() and MROW() to get the relative position of the textbox in form coordinates. The position returned is, I believe, as if the textbox were in the first row of the grid. If it is in a subordinate row, then you will have to adjust the position. Once you have the textbox position on the form, then you should be able to use addobject to impose another control on top of the grid textbox.
>
>But, to make it much, much easier, what is the possibility to adding the control to be displayed to the column and merely making it the active control when the user dblclicks (or whatever)? This would seem to be a much simpler implementation that would have the same visual effect.
>
>regards,
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement