Posted 19 years ago
by Corey Miller
Perhaps this goes along with a previous topic about docking menus and toolbars... I dont actually know. I have gotten the DockWindow working appropriately; however, forms that are mdi children and are placed into the dockwindow are not merging their main menu like they are supposed to. Is this a known issue? Is there something additionally I need to do to get that feature? Am I doing something wrong.
Here is my code...The oForm has a 2.0 MainMenu attached to it that merges with the main menu. But when I run this command the main menu is within the tabbed document window and never merges with the main menu of the mdi parent.
Here is my code...
TC.CodeEditor.frmCodeEditor oForm = new TC.CodeEditor.frmCodeEditor();
ActiproSoftware.UIStudio.Dock.DocumentWindow oDoc = new ActiproSoftware.UIStudio.Dock.DocumentWindow();
oDoc.DockManager = this.AP_dockManager;
oDoc.Text = oForm.Text;
oForm.TopLevel = false;
oForm.Visible = true;
oForm.FormBorderStyle = FormBorderStyle.None;
oForm.Dock = DockStyle.Fill;
oDoc.Controls.Add(oForm);
oDoc.Activate(true);