Olaf Doschke
Programmer
I think I had the same problem as Mike in thread184-1263466 and I came to a new observation.
ACTIVATE POPUP xyz AT MROW(),MCOL() works nice within the IDE, but not at runtime. The difference is not scalemode of the form or screen, nor is it the missing parameterisation with a scalemode, the difference is made by the _screen.font. It default to FoxFont at runtime, while you surely have set Arial at designtime - within the IDE.
And that makes the difference.
No need to compute rows/cols from pixel coordinates etc. You can continue to use the simple MROW(),MCOL() or explicitly MROW(0,0), MCOL(0,0) for activating a shortcut/context menu at mouse position, if you just set _screen.fontname="Arial".
Bye, Olaf.
ACTIVATE POPUP xyz AT MROW(),MCOL() works nice within the IDE, but not at runtime. The difference is not scalemode of the form or screen, nor is it the missing parameterisation with a scalemode, the difference is made by the _screen.font. It default to FoxFont at runtime, while you surely have set Arial at designtime - within the IDE.
And that makes the difference.
No need to compute rows/cols from pixel coordinates etc. You can continue to use the simple MROW(),MCOL() or explicitly MROW(0,0), MCOL(0,0) for activating a shortcut/context menu at mouse position, if you just set _screen.fontname="Arial".
Bye, Olaf.