Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shortcut menus -- How to position them???
Message
 
 
To
26/07/2002 11:09:09
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00682842
Message ID:
00683014
Views:
37
That's easy if the list in the popup is short. But if you have a long list and you want a scrolling popup, then you need to control the size of the popup (SIZE POPUP BY...). The location of such a popup cannot be determined ahead of time. The reason why is that the position of a shortcut popup is apparently determined by VFP as the popup is being populated (based, it seems, on total number of items in the popup), but not after the popup is resized. Example: If the person rightclicks near screen bottom, the top of a scrolling popup could locate at top of VFP desktop, and the bottom could be only 1/2 way down the screen but far above the mouse pointer because the SIZE POPUP BY command (intended to shorten the physical height of the popup) is not taken into effect by VFP when it displays the popup.

>Hi Mark
>
>Does this help...
>
>DEFINE POPUP Menu_Opts FROM Mrow(),Mcol() SHORTCUT
>
>Which will display the pop menu where the mouse was clicked.
>
>HTH
>
>Jos
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform