Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Position of a Grid TextBox control in relation to the fo
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00169164
Message ID:
00169207
Views:
29
Thanks to all who responded.

David's OBJTOCLIENT() is actually the answer I needed. I was looking
for a property when it is actually implemented as a function.

In practice what I shall use, however, is MCOL(MWINDOW(), 3) and
MROW(MWINDOW(), 3) as implicitly suggested by James Edgar as that saves
me doing any calculations to position the new object "inside" the control
on which the user double-clicked, all I have to do is use the mouse
position - having been used to MCOL() and MROW() if FPDOS I had not
picked up that the "..,3" option enables you to return Pixels rather than
than Foxels.

Thank you all again.

Michel.

=================== Original message follows ===================

>Michel,
>
>You can use objtoclient()
>
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform