Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to position the bottom of the popup menu?
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Titre:
How to position the bottom of the popup menu?
Divers
Thread ID:
00994983
Message ID:
00994983
Vues:
60
In another message, Sergey Berezniker suggested a very useful code of positioning the top of a popup menu to a form button. (Below is his code).

But now I am wondering if it is possible to make the change to the code and to anchor the bottom of the popup menu at the button?

Thank you for any questions.
Thisform.ScaleMode = 0		&& Foxels
lnPosX = This.Left + This.Width
lnPosY = This.Top + This.Height
Thisform.ScaleMode = 3          && Back to Pixels
DEFINE POPUP test SHORTCUT RELATIVE FROM (lnPosY), (lnPosX)
DEFINE BAR 1 OF test PROMPT "Menu 1" 
DEFINE BAR 2 OF test PROMPT "Menu 2" 
ACTIVATE POPUP test
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform