Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Right-Mouse Popup Menu Placement
Message
From
04/05/2006 07:53:07
 
 
To
03/05/2006 17:37:31
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01118767
Message ID:
01119087
Views:
18
>DEFINE POPUP shortcut SHORTCUT FROM MROW(0), MCOL(0)

This only works if the form is in the VFP screen; if the form's ShowWindow='2 - As Top-level' the above code will default to the main vfp screen -- not desired. The IN SCREEN clause is still required. The solution I found is to dynamically set the form Name property in the form INIT event; i.e., .Name=SYS(2015). However, I still needed the static Name for other uses, so I created a custom property (FormName) and set the static value to that. In my classes, I test for the existance of FormName; i.e., PEMSTATUS(thisform,"FormName",5) -- if found then use this value, otherwise, I use the normal Name property value.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform