Mike Lewis
Programmer
When you use DEFINE POPUP to create a shortcut menu, the FROM clause specifies the top left corner where the menu is to be located. Typically, this is set to MROW(), MCOL(), which means the menu pops up at the mouse pointer, which is usually what you want.
In my case, however, I want the menu to pop up in a specific location relative to the main window, regardless of where the mouse is. I know I can use actual numbers in place of MROW(), MCOL(), for example:
DEFINE POPUP shortcut SHORTCUT RELATIVE FROM 20, 100
The trouble is that these numbers are in Foxels. I know where I want to put my menu, but I only know the location in pixels.
My question is: Is there a way of specifying the menu location in pixels? Or, alternatively, is there a reliable way of converting a pixel location to Foxels?
Thanks in advance.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
My Visual FoxPro site: www.ml-consult.co.uk