Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to position the bottom of the popup menu?
Message
 
 
To
11/03/2005 14:27:31
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00994983
Message ID:
00994999
Views:
12
>>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
>>
>
>yes you can with the "[TO nRow2, nColumn2]" addition to Define Popup

But how do you find the values for nRow2 and nColumn2?
"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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform