Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sub-menu at right click on form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00459270
Message ID:
00459741
Views:
28
And to expand even further on what others have indicated here, define a short cut menu class. We use one here and the right click method of whatever is going to fire it populates an array of items which is a property of the menu class. A method reads that array and builds the menu. Very flexible and seems to work well for us plus it makes use of OOP.

Steve

>To expand on what others have posted, add the menu calling code (e.g. define menu, do myshortcut.mpr, etc.) to the right-click event (or a method called from the right-click) in your first-level form subclass. That way all forms inheriting from that form will get the behavior.
>
>A more generic (better, IMO) way would be to add a form-level property to hold the name of a menu file. Then you could add code to the appropriate method to launch the menu file spcified there. The code could check to make sure the property was populated and if not, do nothing.
>
>HTH.
>
>>I want to display a submenu, when I click on a form. I want to call this routine from all the forms of my project. How can I do that ?
>>
>>
>>Please help.
>>
>>Thanx in advance
>>
>>
>>Regards
>>
>>Ashish Patel
Previous
Reply
Map
View

Click here to load this message in the networking platform