Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Position of a Grid TextBox control in relation to the fo
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00169164
Message ID:
00169167
Vues:
30
>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,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform