Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Define popup at location
Message
From
28/06/2002 13:59:45
Irv Adams
MSC Managed Care, Inc.
Florida, United States
 
 
To
28/06/2002 13:40:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00673253
Message ID:
00673406
Views:
43
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform