Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

position a shortcut menu...

Status
Not open for further replies.

Neil Toulouse

Programmer
Mar 18, 2002
882
GB
Hi folks!

I am trying to be very specific (to the pixel) about where I position a shortcut menu, but seem to be getting tied in knots around foxels and pixels!

I know I can get the current mouse position in foxels with MROW()/MCOL(), which will give me the top-left origin for the shortcut menu, but I need it appear at a specific position, not at the mouse pointer.

The DEFINE POPUP statement FROM clause seems to be expecting foxels, which is basically my problem!

Therefore is there a way of converting an object's TOP property (pixel value) to a foxel value, or a way of making the FROM clause accept pixel values?

TIA
Neil


I like work. It fascinates me. I can sit and look at it for hours...
 
Typically sorted it (to an extent) after posting!

Basically, before calling the menu I change the SCALEMODE property of the form to 0 (foxels), take the TOP value of the object I am concerned with (now in foxels) and pass that as a parameter to the shortcut menu for the FROM clause.

Not bang-on perfect positioning, but will do for what I need!

Neil

I like work. It fascinates me. I can sit and look at it for hours...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top