Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Define popup at location
Message
 
À
28/06/2002 10:40:24
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00673253
Message ID:
00673293
Vues:
31
Hello Jerry

when I activate a popup with
do menu1.mpr
the menu pops-up at the place of the mouse, unless it is off the screen then it pops-up at the closest place to the mouse

you can fix this by moving the mouse
Mouse at 1,1 && moves the mouse
do menu1.mpr && the shortcut menu will pop-up at 1,1
>Thanks, but that doesn't work. The popup is defined and activated in the command button's click() event. The command button could be positioned anywhere on the form.
>
>When the button is clicked, how can I tell the popup to display right on top of the command button?
>
>Thanks,
>
>Jerryt
>
>
>
>
>>
>>did you try and add the "from" and "to" and I think that should do it. i.e.
>>
>>from 1,1 to 30,30
>>
>>
>
>
>>
>>>Using VFP7.
>>>
>>>I have a command button in a class. This button defines a popup and activates the popup when the user clicks the button. Everything works great!
>>>
>>>However, on some forms the popup is displayed off to the side. On other forms the popup is activated right on top of the command button.
>>>
>>>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()
>>>
>>>
>>>Thanks,
>>>
>>>Jerryt
Stephen McLaughlin
"Sexy Steve Valenteno", "Blastmaster"
stephenmclaughlin@gmail.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform