>>Hi,
>>
>>I have a check box in one of the columns of a grid. The check box appears as a button (be design). I want a pop-up menu appear when user clicks on a check box image. But the pop-up always appears in the upper-left corner of the form where grid resides.
>
>Check out the ObjToClient() function.
>
>Tamar
When I use the ObjToClient( this, nPosition) it seems - by the value of the numbers - return the position of the check box. For example, the Left is always 245 (since left does not change). The top could be 189 or higher, 245.
But when I apply these numbers to the define popup as:
define popup OutputChoice shortcut relative from (lnPosY),(lnPosX)
Now the popup Outputchoice appears in the right bottom corner of the monitor. Completely different than before. But I think your suggestion to use ObjToClient() should work. I just don't know if I apply the numbers correctly.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham