Adding MDI Menu Options at Runtime
Posted on 2005-05-13
In my VB 6.0 app I have the forms set up as MDI. On my MDI parent I have menu options set up. Examples of the base options are:
File Edit etc...
Save As Paste
These will appear as a menu bar.
I have many other options that I want to add that will only be used as popup menu's. I know I can add them to the menu using the menu editor but since this list could be much more dynamic I am looking for a way to do it in code. The structure of what I would like to add is something like: (I will use indentation to denote levels) Initially I would like them all hidden. I would make them visible and reference them as popups at the appropriate times.
Caption: Description Options Name: mnuDescirption highest level
Caption: Edit this Description Name:desEdit
Caption: Copy this Description Name:desCopy
Caption: Delete this Description Name:desDelete
Caption: Evaluation Options Name: mnuEvaluation highest level
Caption: Edit this Evaluation Name:evalEdit
Caption: Copy this Evaluation Name:evalCopy
Caption: Delete this Evaluation Name:evalDelete
These items would have to be added to the exsiting menu items.