Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Make popup to be at the check box
Message
From
04/01/2021 13:35:54
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01677728
Message ID:
01677748
Views:
108
This message has been marked as the solution to the initial question of the thread.
>>>>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?

Actually, I'm pretty sure that DEFINE POPUP uses rows and columns, not Foxels (though they're similar). Can't you just use MROW(), MCOL()?

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform