General information
Category:
Coding, syntax & commands
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
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