Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Position of a Grid TextBox control in relation to the fo
Message
From
19/12/1998 20:45:54
 
 
To
19/12/1998 17:40:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00169164
Message ID:
00169171
Views:
13
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
Map
View

Click here to load this message in the networking platform