Ok, so here I am playing with MDI Children in a form and I just noticed that now that they are children their MainMenu's seem to disappear. I've tried some google searches (I apparently have several languages that haven't been installed, as most of the hits were not in English) and tried searching this forum, but didn't get anything useful.
Here's the situation:
A form (we will call it Form1 in good MS fashion) that is an MDI Container. It has a MainMenu (which btw doesn't respond consistently to mnemonics I added, but thats another issue)
A second form (we'll call it Form2) that has a MainMenu and a various set of controls.
I open Form2 from Form1 like so:
Now that I have a Form2 object open as an MDI Child it is interesting to note that the MainMenu for Form2 is not being displayed.
Ok, to test that it is definately an MDI problem, we comment out the MDI line:
Hmm, now we have a MainMenu on our Form2 object...?
If anyone knows a way around this or an explanation for why this occurs as it does I'd appreciate it.
(My guess is that this might be a sloppy way to keep menu key event handling simple, ie so that a Ctrl+? mnemonic can be checke against only one menu. If so it's sloppy, as all it would need to do is check the screen in focus then check it's parents in a recursive fashion)
-T
01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111
The never-completed website:
Here's the situation:
A form (we will call it Form1 in good MS fashion) that is an MDI Container. It has a MainMenu (which btw doesn't respond consistently to mnemonics I added, but thats another issue)
A second form (we'll call it Form2) that has a MainMenu and a various set of controls.
I open Form2 from Form1 like so:
Code:
Dim f as New Form2()
f.MdiParent = Me
f.Show()
Ok, to test that it is definately an MDI problem, we comment out the MDI line:
Code:
Dim f as New Form2()
'f.MdiParent = Me
f.Show()
Hmm, now we have a MainMenu on our Form2 object...?
If anyone knows a way around this or an explanation for why this occurs as it does I'd appreciate it.
(My guess is that this might be a sloppy way to keep menu key event handling simple, ie so that a Ctrl+? mnemonic can be checke against only one menu. If so it's sloppy, as all it would need to do is check the screen in focus then check it's parents in a recursive fashion)
-T
01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111
The never-completed website: