Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Make popup to be at the check box
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01677728
Message ID:
01677742
Views:
51
>>>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.

I appears that for the POPUP to work the coordinates have to be in Foxels (not pixels). So, my questions is, how do you convert Pixels to Foxels? For example, if the Pixels number is 245, how would I figure it in Foxels?
"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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform