Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sub-menu at right click on form
Message
 
 
To
04/01/2001 08:03:47
Ashish Patel
Hindustan Petroleum
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00459270
Message ID:
00459349
Views:
19
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
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform