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