[Mono-bugs] [Bug 341998] New: ToolStrip does not works!!!!
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Nov 15 12:31:03 EST 2007
https://bugzilla.novell.com/show_bug.cgi?id=341998
Summary: ToolStrip does not works!!!!
Product: Mono: Class Libraries
Version: 1.2.5
Platform: i586
OS/Version: All
Status: NEW
Severity: Critical
Priority: P5 - None
Component: Windows.Forms
AssignedTo: mono-bugs at ximian.com
ReportedBy: derzhavinas at rambler.ru
QAContact: mono-bugs at ximian.com
Found By: ---
Description of Problem:
Steps to reproduce the problem:
Try example, that works on Microsoft FW 2.0, and you'll see, that the
ToolStrips in the Left and Right panels are Invisble and are not available (top
and bottom ToolStrips are unmoveble):
---- CODE HERE----
public Form1()
{
// Make Form MDI Parent
this.IsMdiContainer = true;
// Add toolstrip panels
ToolStripPanel tspTop = new ToolStripPanel();
ToolStripPanel tspBottom = new ToolStripPanel();
ToolStripPanel tspLeft = new ToolStripPanel();
ToolStripPanel tspRight = new ToolStripPanel();
// dock the ToolStripPanels
tspTop.Dock = DockStyle.Top;
tspBottom.Dock = DockStyle.Bottom;
tspLeft.Dock = DockStyle.Left;
tspRight.Dock = DockStyle.Right;
// add toolstrips to move around between the panels
ToolStrip tsTop = new ToolStrip();
tsTop.Items.Add("Top");
tspTop.Join(tsTop);
ToolStrip tsBottom = new ToolStrip();
tsBottom.Items.Add("Bottom");
tspBottom.Join(tsBottom);
ToolStrip tsRight = new ToolStrip();
tsRight.Items.Add("Right");
tspRight.Join(tsRight);
ToolStrip tsLeft = new ToolStrip();
tsLeft.Items.Add("Left");
tspLeft.Join(tsLeft);
// add menustrip, with new window
MenuStrip ms = new MenuStrip();
ToolStripMenuItem windowMenu = new ToolStripMenuItem("Window");
ToolStripMenuItem windowNewMenu = new ToolStripMenuItem("New", null, new
EventHandler(windowNewMenu_Click));
windowMenu.DropDownItems.Add(windowNewMenu);
((ToolStripDropDownMenu)(windowMenu.DropDown)).ShowImageMargin = false;
((ToolStripDropDownMenu)(windowMenu.DropDown)).ShowCheckMargin = true;
ms.MdiWindowListItem = windowMenu;
ms.Items.Add(windowMenu);
ms.Dock = DockStyle.Top;
// Form.MainMenuStrip determines merge target
MainMenuStrip = ms;
// add a button to the MDIClient area
Button b = new Button();
b.AutoSize = true;
b.Text = "In the MDI Container";
// Add the ToolStripPanels to the form in reverse order
this.Controls.Add(tspRight);
this.Controls.Add(tspLeft);
this.Controls.Add(tspBottom);
this.Controls.Add(tspTop);
// add menustrip last - Z order!
this.Controls.Add(ms);
}
void windowNewMenu_Click(object sender, EventArgs e)
{
Form f = new Form();
f.MdiParent = this;
f.Text = "Form - " + this.MdiChildren.Length.ToString();
f.Show();
}
}
Actual Results:
tsTop, tsBottom, tsLeft, tsRight - are not visible and not available
if you're change "Join" call to "Controls.Add" call, like this
"tspBottom.Controls.Add(tsBottom);" , you're get an unmovable toolstrips, and
it does not look like Microsoft version of ToolStrips.
Expected Results:
How often does this happen?
Additional Information:
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list