General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only