Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Define popup at location
Message
From
28/06/2002 13:40:51
 
 
To
28/06/2002 11:16:21
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00673253
Message ID:
00673396
Views:
35
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform