Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Right-Mouse Popup Menu Placement
Message
From
03/05/2006 17:37:31
 
 
To
03/05/2006 10:01:10
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01118767
Message ID:
01118944
Views:
14
>I have defined a right-mouse click popup menu as follows:
>
>
>lcWindow  = thisform.Name
>DEFINE POPUP shortcut SHORTCUT FROM MROW(lcWindow), MCOL(lcWindow) IN WINDOW (lcWindow)
>...
>
>
>The above code works well for placing the menu at the current cursor position in the window. However, if two instances of the form are present (each modeless), then the menu placement is located on the second instance always. That is, if the user "pops-up" the menu on the first form instance, the menu appears on the second instance; works as expected on the second instance.
>
>Any suggestions on forcing the menu to be on the active form always? Thanks.
DEFINE POPUP shortcut SHORTCUT FROM MROW(0), MCOL(0)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform