[Mono-bugs] [Bug 76782][Wis] New - FixedToolWindow has no TitleBar

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Nov 21 18:46:07 EST 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by levap at bansky.net.

http://bugzilla.ximian.com/show_bug.cgi?id=76782

--- shadow/76782	2005-11-21 18:46:07.000000000 -0500
+++ shadow/76782.tmp.30622	2005-11-21 18:46:07.000000000 -0500
@@ -0,0 +1,139 @@
+Bug#: 76782
+Product: Mono: Runtime
+Version: 1.1
+OS: All
+OS Details: Mepis Linux 3.3.1 & MS Windows XP SP2 Czech
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: JIT
+AssignedTo: lupus at ximian.com                            
+ReportedBy: levap at bansky.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: FixedToolWindow has no TitleBar
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+When I crate nad show new form, it has no titlebar and it's imposibile to
+move with it. Application sometimes hangs. TitleBar n and frame has only
+the main application window. Problems is caused by
+FormBorderStyle=FixedToolWindow
+
+Steps to reproduce the problem:
+1. Create class derived form with FormBorderStyle=FixedToolWindow
+2. Create and show this form class from MainForm
+
+
+Actual Results:
+http://www.bansky.net/img/newwindowissue.png
+
+Expected Results:
+
+window with TitleBar
+
+How often does this happen? 
+Every time
+
+Additional Information:
+file MainForm.cs
+
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+
+namespace NewWinMono
+{
+public class MainForm : System.Windows.Forms.Form
+{
+private System.Windows.Forms.Button button1;
+public MainForm()
+{
+    InitializeComponent();
+}
+       
+[STAThread]
+public static void Main(string[] args)
+{
+    Application.Run(new MainForm());
+}
+       
+private void InitializeComponent() {
+    this.button1 = new System.Windows.Forms.Button();
+    this.SuspendLayout();
+    //
+    // button1
+    //
+    this.button1.Location = new System.Drawing.Point(40, 40);
+    this.button1.Name = "button1";
+    this.button1.TabIndex = 0;
+    this.button1.Text = "button1";
+    this.button1.Click += new         System.EventHandler(this.Button1Click);
+    //
+    // MainForm
+    //
+    this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
+    this.ClientSize = new System.Drawing.Size(152, 125);
+    this.Controls.Add(this.button1);
+    this.Name = "MainForm";
+    this.Text = "MainForm";
+    this.ResumeLayout(false);
+}
+
+void Button1Click(object sender, System.EventArgs e)
+{
+    Form1 frm = new Form1();
+    frm.Show();
+}
+       
+}
+}
+
+file Form1.cs
+
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+
+namespace NewWinMono
+{
+public class Form1 : System.Windows.Forms.Form
+{
+private System.Windows.Forms.Label label1;
+public Form1()
+{
+    InitializeComponent();
+}
+
+private void InitializeComponent() {
+    this.label1 = new System.Windows.Forms.Label();
+    this.SuspendLayout();
+    //
+    // label1
+    //
+    this.label1.Location = new System.Drawing.Point(16, 72);
+    this.label1.Name = "label1";
+    this.label1.Size = new System.Drawing.Size(160, 40);
+    this.label1.TabIndex = 0;
+    this.label1.Text = "This is the new window without Caption Bar";
+    //
+    // Form1
+    //
+    this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
+    this.ClientSize = new System.Drawing.Size(208, 261);
+    this.Controls.Add(this.label1);
+    this.FormBorderStyle =
+System.Windows.Forms.FormBorderStyle.FixedToolWindow;
+    this.Name = "Form1";
+    this.ShowInTaskbar = false;
+    this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+    this.Text = "Form1";
+    this.ResumeLayout(false);
+}
+}
+}


More information about the mono-bugs mailing list