v_krishnan
October 8th, 2001, 02:34 AM
I am developing an MDI application. The Main window has its window and the child window has the same menu as its parent but with some options added. Now I want that the menu handling code for the menu options that are common to both be handled at a single place. How is this possible?
SAKYA
October 8th, 2001, 03:49 AM
Your question is not very clear.If you are creating MDI application then you can create menu for the MDI form which can be accessed from the child window as well.If you want to give more options to the user depending on which child window is open then do the following. Create these menus in the MDI form, set visible property to false and make them available on the activate event of the concerned child window. If you are using the same menus for both MDI and child windows then you do not need to create the menues separetely at all.Any canges in the response of the menu depending on the currently open form can be coded.