Don't understand it myself
The only time I have the problem is when I execute a (global) function from within a mousedown() of an object
ie
Textbox.MouseDown()
...
nodefault
=DoSomePopup(args )
SomePopup(args )
acti screen && without this, there's the problem
local p
p = sys(2015)
define popup (p) margin shortcut scroll
activate popup (p) at mRow(), mCol()
There must be a reason. And I haven't found it (yet)
>I have a problem with menu appearing off to the Right during a Popup on top of a Grid...just tried the idea below but it didn't help (thanks anyway)...the wierd thing is that it is always off straight to the RIGHT, as if Mrow(),Mcol()-x might work...?
>
>-Irv.
>
>
>>Jerry,
>>
>>Just picked something up from the newsgroup. Have not tested it but it may help explaining
>>
>>(dan Freeman)
>>quote
>>
>>The problem with MROW() and MCOL() is that they always return coordinates
>>relative to _screen, UNLESS YOU PASS THEM A WINDOW NAME. That's where
>>MWINDOW() comes in.
>>
>>ACTIVATE POPUP whatever AT MROW(MWINDOW()), MCOL(MWINDOW())
>>
>>You can find out what object (control) is under the mouse with sys(1270) and
>>query its top/left, but that's not very useful for "large" objects.
>>AMOUSEOBJ() may also be of help to you.
>>
>>endquote
>>
>>>Gregory,
>>>
>>>That worked! Wierd it works that way but I'll take.
>>>
>>>Thanks for your help.
>>>
>>>Jerryt
>>>
>>>
>>>
>>>>>How can I always make the popup display right on top of the command button?
>>>>>
>>>>>***Here's the code in my button CLICK() method.
>>>>>DEFINE POPUP shortcut SHORTCUT RELATIVE FONT "Arial", 9
>>>>>DEFINE BAR 1 OF shortcut PROMPT "Mybar1" MARK "*" STYLE 'B' ;
>>>>> MESSAGE "Mybar1 message" ;
>>>>> FONT "Arial", 8
>>>>>***More bars go here.
>>>>>
>>>>>ACTIVATE POPUP shortcut AT ROW(), COL()
>>>>>
>>>>>
>>>>
>>>>What has worked for me is to put activate screen just before activating the popup
>>>>
>>>>Activate Screen
>>>>activate popup shortcut at mRow(), mCol()
>>>>
>>>>Don't ask me why, I don't know
Gregory