Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a form method from a shortcut menu
Message
 
 
To
13/07/1998 13:09:32
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00116786
Message ID:
00116856
Views:
16
Bob,

Right, I put all the messy details of defining the menu in the menu object. This prevents you from having duplicated code all over your app in RightClick methods.

It had an AddItem() method that did the DEFINE BAR, and put the callback method name in an array that the OnSelection() method called back to. It was setup to allow you to call back to a method of a control object itself of just the form.

>Makes sense. You can pull the functionality out of the menu, and make is just a basic vehicle for letting the user choose an action.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform