Information générale
Catégorie:
Codage, syntaxe et commandes
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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement