General information
Category:
Coding, syntax & commands
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,
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only