If you've Form open than MROW() and MCOL() returns mouse position relatively to that form. If you want position relative to the VFP screen, add "SCREEN" parameter.
nRow = MROW("SCREEN") + 1
nCol = MCOL("SCREEN") - 7.5
>I have a toolbar that pops up a menu, like Outlook.
>
>The menu works fine except when there are screens open. Then the
>popup menu appears off the side of the screen.
>
>My code is:
>
>
>nRow = MROW() + 1
>nCol = MCOL() - 7.5
>
>DEFINE POPUP ShortCuts FROM nRow, nCol IN SCREEN SHORTCUT
>
>
--sb--