Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change shortcut menu options at runtime
Message
 
 
To
30/04/2014 13:47:09
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01599282
Message ID:
01599332
Views:
79
>>>>I have a grid in which I have a text box. On right clicking the text box I have a shortcut menu pop up with 3 options; depending upon various flags set in the selected record I wish to change the wording on the shortcut option e.g "Accept" or "Reject". Is it possible to do this with a single shortcut menu or do I have to have 2 separate menus for each alternative (in which case I would need 6 menus to cover all the possible variations!).
>>>
>>>
>>>I do this kind of thing by building the shortcut menu on the fly. That is, the RightClick method calls a method that issues the appropriate DEFINE BAR commands.
>>>
>>>Tamar
>>Thanks - will give it a go! I have led a very simple life to date - managing to avoid building my own menus and relying on the built in menu designer. Still, nothing ventured, nothing gained.
>
>
>If you have the old FoxTalks, you can find an article by Doug Hennig that lays out the strategy I use. It was in the September '97 issue.
>

Your house must be sinking if you still have magazines from 16 years ago ;-)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform