Author: gert
Date: 2007-09-18 07:42:11 -0400 (Tue, 18 Sep 2007)
New Revision: 85963

Added:
   trunk/gert/interactive/bug325535/
   trunk/gert/interactive/bug325535/MainForm.cs
   trunk/gert/interactive/bug325535/default.build
   trunk/gert/interactive/bug325969/
   trunk/gert/interactive/bug325969/MainForm.cs
   trunk/gert/interactive/bug325969/default.build
   trunk/gert/interactive/bug325973/
   trunk/gert/interactive/bug325973/MainForm.cs
   trunk/gert/interactive/bug325973/default.build
   trunk/gert/interactive/bug82763/
   trunk/gert/interactive/bug82763/MainForm.cs
   trunk/gert/interactive/bug82763/default.build
   trunk/gert/interactive/bug82838/
   trunk/gert/interactive/bug82838/MainForm.cs
   trunk/gert/interactive/bug82838/default.build
Modified:
   trunk/gert/interactive/known_issues
Log:
More tests.


Added: trunk/gert/interactive/bug325535/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug325535/MainForm.cs        2007-09-18 11:13:41 UTC 
(rev 85962)
+++ trunk/gert/interactive/bug325535/MainForm.cs        2007-09-18 11:42:11 UTC 
(rev 85963)
@@ -0,0 +1,134 @@
+using System;
+using System.Drawing;
+using System.Globalization;
+using System.Windows.Forms;
+
+public class MainForm : Form
+{
+       public MainForm ()
+       {
+               // 
+               // _contextMenu
+               //
+               _contextMenu = new ContextMenu ();
+               _contextMenu.MenuItems.Add (new MenuItem ("Close"));
+               //
+               // _customControl
+               //
+               _customControl = new CustomControl ();
+               _customControl.Dock = DockStyle.Fill;
+               _customControl.BackColor = Color.LightBlue;
+               _customControl.ContextMenu = _contextMenu;
+               Controls.Add (_customControl);
+               // 
+               // _listBox
+               //
+               _listBox = new ListBox ();
+               _listBox.Dock = DockStyle.Bottom;
+               _listBox.Height = 150;
+               _customControl.ListBox = _listBox;
+               Controls.Add (_listBox);
+               // 
+               // MainForm
+               // 
+               ClientSize = new Size (300, 200);
+               Location = new Point (250, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "bug #325535";
+               Load += new EventHandler (MainForm_Load);
+       }
+
+       [STAThread]
+       static void Main ()
+       {
+               Application.Run (new MainForm ());
+       }
+
+       void MainForm_Load (object sender, EventArgs e)
+       {
+               InstructionsForm instructionsForm = new InstructionsForm ();
+               instructionsForm.Show ();
+       }
+
+       private ContextMenu _contextMenu;
+       private CustomControl _customControl;
+       private ListBox _listBox;
+}
+
+class CustomControl : Control
+{
+       public ListBox ListBox {
+               get { return _listBox; }
+               set { _listBox = value; }
+       }
+
+       protected override void OnMouseUp (MouseEventArgs args)
+       {
+               base.OnMouseUp (args);
+               _listBox.Items.Add ("Method => OnMouseUp");
+       }
+
+       protected override void WndProc (ref Message msg)
+       {
+               if (msg.Msg == 0x007B) // WM_CONTEXTMENU
+                       _listBox.Items.Add ("Message => WM_CONTEXTMENU");
+               else if (msg.Msg == 0x0205) // WM_RBUTTONUP
+                       _listBox.Items.Add ("Message => WM_RBUTTONUP");
+               base.WndProc (ref msg);
+       }
+
+       private ListBox _listBox;
+}
+
+public class InstructionsForm : Form
+{
+       public InstructionsForm ()
+       {
+               // 
+               // _tabControl
+               // 
+               _tabControl = new TabControl ();
+               _tabControl.Dock = DockStyle.Fill;
+               Controls.Add (_tabControl);
+               // 
+               // _bugDescriptionText1
+               // 
+               _bugDescriptionText1 = new TextBox ();
+               _bugDescriptionText1.Dock = DockStyle.Fill;
+               _bugDescriptionText1.Multiline = true;
+               _bugDescriptionText1.Text = string.Format 
(CultureInfo.InvariantCulture,
+                       "Steps to execute:{0}{0}" +
+                       "1. Right-click the blue area.{0}{0}" +
+                       "2. Release the mouse button.{0}{0}" +
+                       "3. Click the Close menuitem.{0}{0}" +
+                       "Expected results:{0}{0}" +
+                       "1.On step 2:{0}{0}" +
+                       "   * A contextmenu is displayed{0}" +
+                       "   * The following messages have been received:{0}{0}" 
+
+                       "      WM_RBUTTONUP{0}" +
+                       "      WM_CONTEXTMENU{0}{0}" +
+                       "2. On step 3:{0}{0}" +
+                       "   * The contextmenu is closed.{0}" +
+                       "   * The OnMouseUp method is invoked once the " +
+                       "contextmenu is closed.",
+                       Environment.NewLine);
+               // 
+               // _tabPage1
+               // 
+               _tabPage1 = new TabPage ();
+               _tabPage1.Text = "#1";
+               _tabPage1.Controls.Add (_bugDescriptionText1);
+               _tabControl.Controls.Add (_tabPage1);
+               // 
+               // InstructionsForm
+               // 
+               ClientSize = new Size (400, 340);
+               Location = new Point (600, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "Instructions - bug #325535";
+       }
+
+       private TextBox _bugDescriptionText1;
+       private TabControl _tabControl;
+       private TabPage _tabPage1;
+}


Property changes on: trunk/gert/interactive/bug325535/MainForm.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/interactive/bug325535/default.build
===================================================================
--- trunk/gert/interactive/bug325535/default.build      2007-09-18 11:13:41 UTC 
(rev 85962)
+++ trunk/gert/interactive/bug325535/default.build      2007-09-18 11:42:11 UTC 
(rev 85963)
@@ -0,0 +1,62 @@
+<project name="bug325535" default="rebuild">
+       <target name="mono-1.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,ONLY_1_1,MONO" />
+       </target>
+
+       <target name="mono-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0,MONO" />
+       </target>
+
+       <target name="net-1.1">
+               <property name="csc.defines" value="NET_1_0,NET_1_1,ONLY_1_1" />
+       </target>
+
+       <target name="net-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0" />
+       </target>
+
+       <property name="frameworks" value="mono-1.0,mono-2.0,net-1.1,net-2.0" />
+
+       <target name="clean">
+               <delete>
+                       <fileset>
+                               <include name="out" />
+                               <include name="test.exe" />
+                       </fileset>
+               </delete>
+       </target>
+
+       <target name="build">
+               <property name="original.targetframework" 
value="${nant.settings.currentframework}" />
+
+               <foreach property="framework" item="String" in="${frameworks}" 
delim=",">
+                       <if test="${framework::exists(framework)}">
+                               <property name="nant.settings.currentframework" 
value="${framework}" />
+                               <call 
target="${nant.settings.currentframework}" />
+                               <call target="run" />
+                               <call target="clean" />
+                       </if>
+               </foreach>
+
+               <property name="nant.settings.currentframework" 
value="${original.targetframework}" />
+       </target>
+
+       <target name="compile">
+               <csc target="winexe" define="${csc.defines}" output="test.exe" 
warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="MainForm.cs" />
+                       </sources>
+                       <references>
+                               <include name="System.Drawing.dll" />
+                               <include name="System.Windows.Forms.dll" />
+                       </references>
+               </csc>
+       </target>
+
+       <target name="run" depends="compile">
+               <exec program="test.exe" managed="true" output="out" />
+               <fail if="${file::exists('out')}" />
+       </target>
+
+       <target name="rebuild" depends="clean, build" />
+</project>


Property changes on: trunk/gert/interactive/bug325535/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/interactive/bug325969/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug325969/MainForm.cs        2007-09-18 11:13:41 UTC 
(rev 85962)
+++ trunk/gert/interactive/bug325969/MainForm.cs        2007-09-18 11:42:11 UTC 
(rev 85963)
@@ -0,0 +1,146 @@
+using System;
+using System.Drawing;
+using System.Globalization;
+using System.Windows.Forms;
+
+class MainForm : Form
+{
+       public MainForm ()
+       {
+               //
+               // _table
+               //
+               _table = new TableLayoutPanel ();
+               _table.ColumnCount = 1;
+               _table.ColumnStyles.Add (new ColumnStyle (SizeType.Percent, 
100F));
+               _table.Dock = DockStyle.Fill;
+               _table.RowCount = 1;
+               _table.RowStyles.Add (new RowStyle ());
+               Controls.Add (_table);
+               // 
+               // _toolStrip
+               // 
+               _toolStrip = new ToolStrip ();
+               _toolStrip.AllowItemReorder = true;
+               _toolStrip.Dock = DockStyle.Fill;
+               _toolStrip.Margin = new Padding (5);
+               _toolStrip.Stretch = true;
+               _toolStrip.TabStop = false;
+               _table.Controls.Add (_toolStrip, 0, 0);
+               // 
+               // _textBox
+               // 
+               _textBox = new ToolStripTextBox ();
+               _textBox.AcceptsReturn = true;
+               _textBox.AcceptsTab = true;
+               _textBox.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
+               _textBox.AutoCompleteSource = 
AutoCompleteSource.RecentlyUsedList;
+               _textBox.AutoSize = false;
+               _textBox.AutoToolTip = true;
+               _textBox.Multiline = true;
+               _textBox.Margin = new Padding (5);
+               _textBox.Size = new Size(265, 60);
+               _textBox.Text = "1";
+               _toolStrip.Items.Add (_textBox);
+               // 
+               // MainForm
+               // 
+               ClientSize = new Size (270, 165);
+               Location = new Point (250, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "bug #325969";
+               Load += new EventHandler (MainForm_Load);
+       }
+
+       [STAThread]
+       static void Main ()
+       {
+               Application.Run (new MainForm ());
+       }
+
+       void MainForm_Load (object sender, EventArgs e)
+       {
+               InstructionsForm instructionsForm = new InstructionsForm ();
+               instructionsForm.Show ();
+       }
+
+       private TableLayoutPanel _table;
+       private ToolStrip _toolStrip;
+       private ToolStripTextBox _textBox;
+}
+
+public class InstructionsForm : Form
+{
+       public InstructionsForm ()
+       {
+               // 
+               // _tabControl
+               // 
+               _tabControl = new TabControl ();
+               _tabControl.Dock = DockStyle.Fill;
+               Controls.Add (_tabControl);
+               // 
+               // _bugDescriptionText1
+               // 
+               _bugDescriptionText1 = new TextBox ();
+               _bugDescriptionText1.Dock = DockStyle.Fill;
+               _bugDescriptionText1.Multiline = true;
+               _bugDescriptionText1.Text = string.Format 
(CultureInfo.InvariantCulture,
+                       "Steps to execute:{0}{0}" +
+                       "1. Right-click the dropdown button of the 
toolstrip.{0}{0}" +
+                       "Expected result:{0}{0}" +
+                       "1. Nothing happens.",
+                       Environment.NewLine);
+               // 
+               // _tabPage1
+               // 
+               _tabPage1 = new TabPage ();
+               _tabPage1.Text = "#1";
+               _tabPage1.Controls.Add (_bugDescriptionText1);
+               _tabControl.Controls.Add (_tabPage1);
+               // 
+               // _bugDescriptionText2
+               // 
+               _bugDescriptionText2 = new TextBox ();
+               _bugDescriptionText2.Dock = DockStyle.Fill;
+               _bugDescriptionText2.Multiline = true;
+               _bugDescriptionText2.Text = string.Format 
(CultureInfo.InvariantCulture,
+                       "Steps to execute:{0}{0}" +
+                       "1. Click the dropdown button of the toolstrip.{0}{0}" +
+                       "2. Click inside the displayed textbox window.{0}{0}" +
+                       "3. Enter \"23\" in the textbox.{0}{0}" +
+                       "4. Right-click inside the textbox.{0}{0}" +
+                       "5. Click Select All in the contextmenu.{0}{0}" +
+                       "6. Right-click inside the textbox.{0}{0}" +
+                       "7. Click Copy in the contextmenu.{0}{0}" +
+                       "8. Click after the text in the textbox.{0}{0}" +
+                       "9. Right-click inside the textbox.{0}{0}" +
+                       "10. Click Paste in the contextmenu.{0}{0}" +
+                       "11. Increase the width of the form until the textbox" +
+                       "is displayed inside the toolstrip.{0}{0}" +
+                       "Expected result:{0}{0}" +
+                       "1. The following text is displayed inside the 
textbox:{0}{0}" +
+                       "   123123",
+                       Environment.NewLine);
+               // 
+               // _tabPage2
+               // 
+               _tabPage2 = new TabPage ();
+               _tabPage2.Text = "#2";
+               _tabPage2.Controls.Add (_bugDescriptionText2);
+               _tabControl.Controls.Add (_tabPage2);
+               // 
+               // InstructionsForm
+               // 
+               ClientSize = new Size (450, 425);
+               Location = new Point (600, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "Instructions - bug #325969";
+       }
+
+       private TextBox _bugDescriptionText1;
+       private TextBox _bugDescriptionText2;
+       private TabControl _tabControl;
+       private TabPage _tabPage1;
+       private TabPage _tabPage2;
+}


Property changes on: trunk/gert/interactive/bug325969/MainForm.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/interactive/bug325969/default.build
===================================================================
--- trunk/gert/interactive/bug325969/default.build      2007-09-18 11:13:41 UTC 
(rev 85962)
+++ trunk/gert/interactive/bug325969/default.build      2007-09-18 11:42:11 UTC 
(rev 85963)
@@ -0,0 +1,54 @@
+<project name="bug325969" default="rebuild">
+       <target name="mono-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0,MONO" />
+       </target>
+
+       <target name="net-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0" />
+       </target>
+
+       <property name="frameworks" value="mono-2.0,net-2.0" />
+
+       <target name="clean">
+               <delete>
+                       <fileset>
+                               <include name="out" />
+                               <include name="test.exe" />
+                       </fileset>
+               </delete>
+       </target>
+
+       <target name="build">
+               <property name="original.targetframework" 
value="${nant.settings.currentframework}" />
+
+               <foreach property="framework" item="String" in="${frameworks}" 
delim=",">
+                       <if test="${framework::exists(framework)}">
+                               <property name="nant.settings.currentframework" 
value="${framework}" />
+                               <call 
target="${nant.settings.currentframework}" />
+                               <call target="run" />
+                               <call target="clean" />
+                       </if>
+               </foreach>
+
+               <property name="nant.settings.currentframework" 
value="${original.targetframework}" />
+       </target>
+
+       <target name="compile">
+               <csc target="winexe" define="${csc.defines}" output="test.exe" 
warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="MainForm.cs" />
+                       </sources>
+                       <references>
+                               <include name="System.Drawing.dll" />
+                               <include name="System.Windows.Forms.dll" />
+                       </references>
+               </csc>
+       </target>
+
+       <target name="run" depends="compile">
+               <exec program="test.exe" managed="true" output="out" />
+               <fail if="${file::exists('out')}" />
+       </target>
+
+       <target name="rebuild" depends="clean, build" />
+</project>


Property changes on: trunk/gert/interactive/bug325969/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/interactive/bug325973/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug325973/MainForm.cs        2007-09-18 11:13:41 UTC 
(rev 85962)
+++ trunk/gert/interactive/bug325973/MainForm.cs        2007-09-18 11:42:11 UTC 
(rev 85963)
@@ -0,0 +1,145 @@
+using System;
+using System.Drawing;
+using System.Globalization;
+using System.Windows.Forms;
+
+class MainForm : Form
+{
+       public MainForm ()
+       {
+               //
+               // _table
+               //
+               _table = new TableLayoutPanel ();
+               _table.ColumnCount = 1;
+               _table.ColumnStyles.Add (new ColumnStyle (SizeType.Percent, 
100F));
+               _table.Dock = DockStyle.Fill;
+               _table.RowCount = 1;
+               _table.RowStyles.Add (new RowStyle ());
+               Controls.Add (_table);
+               // 
+               // _toolStrip
+               // 
+               _toolStrip = new ToolStrip ();
+               _toolStrip.AllowItemReorder = true;
+               _toolStrip.Dock = DockStyle.Fill;
+               _toolStrip.Margin = new Padding (5);
+               _toolStrip.Stretch = true;
+               _toolStrip.TabStop = false;
+               _table.Controls.Add (_toolStrip, 0, 0);
+               // 
+               // _textBox
+               // 
+               _textBox = new ToolStripTextBox ();
+               _textBox.AcceptsReturn = true;
+               _textBox.AcceptsTab = true;
+               _textBox.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
+               _textBox.AutoCompleteSource = 
AutoCompleteSource.RecentlyUsedList;
+               _textBox.AutoSize = false;
+               _textBox.AutoToolTip = true;
+               _textBox.Multiline = true;
+               _textBox.Margin = new Padding (5);
+               _textBox.Size = new Size(265, 60);
+               _textBox.Text = "1";
+               _toolStrip.Items.Add (_textBox);
+               // 
+               // MainForm
+               // 
+               ClientSize = new Size (300, 165);
+               Location = new Point (250, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "bug #325973";
+               Load += new EventHandler (MainForm_Load);
+       }
+
+       [STAThread]
+       static void Main ()
+       {
+               Application.Run (new MainForm ());
+       }
+
+       void MainForm_Load (object sender, EventArgs e)
+       {
+               InstructionsForm instructionsForm = new InstructionsForm ();
+               instructionsForm.Show ();
+       }
+
+       private TableLayoutPanel _table;
+       private ToolStrip _toolStrip;
+       private ToolStripTextBox _textBox;
+}
+
+public class InstructionsForm : Form
+{
+       public InstructionsForm ()
+       {
+               // 
+               // _tabControl
+               // 
+               _tabControl = new TabControl ();
+               _tabControl.Dock = DockStyle.Fill;
+               Controls.Add (_tabControl);
+               // 
+               // _bugDescriptionText1
+               // 
+               _bugDescriptionText1 = new TextBox ();
+               _bugDescriptionText1.Dock = DockStyle.Fill;
+               _bugDescriptionText1.Multiline = true;
+               _bugDescriptionText1.Text = string.Format 
(CultureInfo.InvariantCulture,
+                       "Steps to execute:{0}{0}" +
+                       "1. Hover the mouse cursor over the area of the " +
+                       "toolstrip surrounding the textbox.{0}{0}" +
+                       "Expected result:{0}{0}" +
+                       "1. No tooltip is displayed.",
+                       Environment.NewLine);
+               // 
+               // _tabPage1
+               // 
+               _tabPage1 = new TabPage ();
+               _tabPage1.Text = "#1";
+               _tabPage1.Controls.Add (_bugDescriptionText1);
+               _tabControl.Controls.Add (_tabPage1);
+               // 
+               // _bugDescriptionText2
+               // 
+               _bugDescriptionText2 = new TextBox ();
+               _bugDescriptionText2.Dock = DockStyle.Fill;
+               _bugDescriptionText2.Multiline = true;
+               _bugDescriptionText2.Text = string.Format 
(CultureInfo.InvariantCulture,
+                       "Steps to execute:{0}{0}" +
+                       "1. Hover over the textbox.{0}{0}" +
+                       "2. Click inside the textbox window.{0}{0}" +
+                       "3. Enter \"23\" in the textbox.{0}{0}" +
+                       "4. Move the mouse cursor away from the textbox.{0}{0}" 
+
+                       "5. Hover over the textbox.{0}{0}" +
+                       "6. Hover over the area of the toolstrip surrounding " +
+                       "the textbox.{0}{0}" +
+                       "Expected result:{0}{0}" +
+                       "1. On step 1, a tooltip with text \"1\" is displayed " 
+
+                       "on the textbox.{0}{0}" +
+                       "2. On step 5, a tooltip with text \"123\" is displayed 
" +
+                       "on the textbox.{0}{0}" +
+                       "3. On step 6, no tooltip is displayed.",
+                       Environment.NewLine);
+               // 
+               // _tabPage2
+               // 
+               _tabPage2 = new TabPage ();
+               _tabPage2.Text = "#2";
+               _tabPage2.Controls.Add (_bugDescriptionText2);
+               _tabControl.Controls.Add (_tabPage2);
+               // 
+               // InstructionsForm
+               // 
+               ClientSize = new Size (350, 330);
+               Location = new Point (600, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "Instructions - bug #325973";
+       }
+
+       private TextBox _bugDescriptionText1;
+       private TextBox _bugDescriptionText2;
+       private TabControl _tabControl;
+       private TabPage _tabPage1;
+       private TabPage _tabPage2;
+}


Property changes on: trunk/gert/interactive/bug325973/MainForm.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/interactive/bug325973/default.build
===================================================================
--- trunk/gert/interactive/bug325973/default.build      2007-09-18 11:13:41 UTC 
(rev 85962)
+++ trunk/gert/interactive/bug325973/default.build      2007-09-18 11:42:11 UTC 
(rev 85963)
@@ -0,0 +1,54 @@
+<project name="bug325973" default="rebuild">
+       <target name="mono-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0,MONO" />
+       </target>
+
+       <target name="net-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0" />
+       </target>
+
+       <property name="frameworks" value="mono-2.0,net-2.0" />
+
+       <target name="clean">
+               <delete>
+                       <fileset>
+                               <include name="out" />
+                               <include name="test.exe" />
+                       </fileset>
+               </delete>
+       </target>
+
+       <target name="build">
+               <property name="original.targetframework" 
value="${nant.settings.currentframework}" />
+
+               <foreach property="framework" item="String" in="${frameworks}" 
delim=",">
+                       <if test="${framework::exists(framework)}">
+                               <property name="nant.settings.currentframework" 
value="${framework}" />
+                               <call 
target="${nant.settings.currentframework}" />
+                               <call target="run" />
+                               <call target="clean" />
+                       </if>
+               </foreach>
+
+               <property name="nant.settings.currentframework" 
value="${original.targetframework}" />
+       </target>
+
+       <target name="compile">
+               <csc target="winexe" define="${csc.defines}" output="test.exe" 
warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="MainForm.cs" />
+                       </sources>
+                       <references>
+                               <include name="System.Drawing.dll" />
+                               <include name="System.Windows.Forms.dll" />
+                       </references>
+               </csc>
+       </target>
+
+       <target name="run" depends="compile">
+               <exec program="test.exe" managed="true" output="out" />
+               <fail if="${file::exists('out')}" />
+       </target>
+
+       <target name="rebuild" depends="clean, build" />
+</project>


Property changes on: trunk/gert/interactive/bug325973/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/interactive/bug82763/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug82763/MainForm.cs 2007-09-18 11:13:41 UTC (rev 
85962)
+++ trunk/gert/interactive/bug82763/MainForm.cs 2007-09-18 11:42:11 UTC (rev 
85963)
@@ -0,0 +1,231 @@
+using System;
+using System.Drawing;
+using System.Globalization;
+using System.Windows.Forms;
+
+class MainForm : Form
+{
+       public MainForm ()
+       {
+               // 
+               // _label
+               // 
+               _label = new Label ();
+               _label.AutoSize = true;
+               _label.Text = "FixedPanel:";
+               _label.Location = new Point (5, 5);
+               _label.TextAlign = ContentAlignment.MiddleLeft;
+               Controls.Add (_label);
+               // 
+               // _fixedSplitterComboBox
+               // 
+               _fixedSplitterComboBox = new ComboBox ();
+               _fixedSplitterComboBox.DropDownStyle = 
ComboBoxStyle.DropDownList;
+               _fixedSplitterComboBox.SelectedIndexChanged += 
FixedSplitterComboBox_SelectedIndexChanged;
+               SetHorizAdjacent (_fixedSplitterComboBox, _label);
+               Controls.Add (_fixedSplitterComboBox);
+               // 
+               // _swapOrientationButton
+               // 
+               _swapOrientationButton = new Button ();
+               _swapOrientationButton.AutoSize = true;
+               _swapOrientationButton.Text = "Swap orientation";
+               _swapOrientationButton.Click += SwapOrientationButton_Click;
+               SetHorizAdjacent (_swapOrientationButton, 
_fixedSplitterComboBox);
+               Controls.Add (_swapOrientationButton);
+               // 
+               // _splitContainer
+               // 
+               _splitContainer = new SplitContainer ();
+               _splitContainer.Location = new Point (0, 
_swapOrientationButton.Bottom + 5);
+               _splitContainer.Width = ClientSize.Width;
+               _splitContainer.Height = ClientSize.Height - 
_splitContainer.Top;
+               _splitContainer.Anchor = AnchorStyles.Left | AnchorStyles.Right 
|
+                       AnchorStyles.Top | AnchorStyles.Bottom;
+               Controls.Add (_splitContainer);
+               // 
+               // _textBox1
+               // 
+               _textBox1 = new TextBox ();
+               _textBox1.Dock = DockStyle.Fill;
+               _textBox1.Multiline = true;
+               _textBox1.Text = "Panel 1";
+               _splitContainer.Panel1.Controls.Add (_textBox1);
+               // 
+               // _textBox2
+               // 
+               _textBox2 = new TextBox ();
+               _textBox2.Dock = DockStyle.Fill;
+               _textBox2.Multiline = true;
+               _textBox2.Text = "Panel 2";
+               _splitContainer.Panel2.Controls.Add (_textBox2);
+               // 
+               // MainForm
+               // 
+               ClientSize = new Size (_swapOrientationButton.Right + 5, 
ClientSize.Width);
+               _splitContainer.SplitterDistance = ClientSize.Width / 2;
+               Location = new Point (250, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "bug #82763";
+               Load += MainForm_Load;
+
+       }
+
+       [STAThread]
+       static void Main ()
+       {
+               Application.Run (new MainForm ());
+       }
+
+       void MainForm_Load (object sender, EventArgs ea)
+       {
+               _fixedSplitterComboBox.DataSource = Enum.GetValues (typeof 
(FixedPanel));
+               _fixedSplitterComboBox.SelectedItem = 
_splitContainer.FixedPanel;
+
+               InstructionsForm instructionsForm = new InstructionsForm ();
+               instructionsForm.Show ();
+       }
+
+       void SwapOrientationButton_Click (object sender, EventArgs ea)
+       {
+               Orientation o = _splitContainer.Orientation;
+               o = o == Orientation.Horizontal ? Orientation.Vertical : 
Orientation.Horizontal;
+               _splitContainer.Orientation = o;
+       }
+
+       void FixedSplitterComboBox_SelectedIndexChanged (object sender, 
EventArgs ea)
+       {
+               FixedPanel fp = (FixedPanel) 
_fixedSplitterComboBox.SelectedValue;
+               _splitContainer.FixedPanel = fp;
+
+               string t1, t2;
+               switch (_splitContainer.FixedPanel) {
+               case FixedPanel.None:
+                       t1 = "GROWS";
+                       t2 = "GROWS";
+                       break;
+               case FixedPanel.Panel1:
+                       t1 = "FIXED";
+                       t2 = "GROWS";
+                       break;
+               case FixedPanel.Panel2:
+                       t1 = "GROWS";
+                       t2 = "FIXED";
+                       break;
+               default:
+                       throw new InvalidOperationException ("Bad FixedPanel 
value.");
+               }
+               _splitContainer.Panel1.Controls [0].Text = "Panel 1 "
+                       + Environment.NewLine + Environment.NewLine + t1;
+               _splitContainer.Panel2.Controls [0].Text = "Panel 2 "
+                       + Environment.NewLine + Environment.NewLine + t2;
+       }
+
+       void SetHorizAdjacent (Control newControl, Control previousControl)
+       {
+               int top = previousControl.Top;
+               int left = previousControl.Right;
+               left += Math.Max (newControl.Margin.Right, 
previousControl.Margin.Left);
+               newControl.Location = new Point (left, top);
+       }
+
+       private Label _label;
+       private Button _swapOrientationButton;
+       private ComboBox _fixedSplitterComboBox;
+       private SplitContainer _splitContainer;
+       private TextBox _textBox1;
+       private TextBox _textBox2;
+}
+
+public class InstructionsForm : Form
+{
+       public InstructionsForm ()
+       {
+               // 
+               // _tabControl
+               // 
+               _tabControl = new TabControl ();
+               _tabControl.Dock = DockStyle.Fill;
+               Controls.Add (_tabControl);
+               // 
+               // _bugDescriptionText1
+               // 
+               _bugDescriptionText1 = new TextBox ();
+               _bugDescriptionText1.Dock = DockStyle.Fill;
+               _bugDescriptionText1.Multiline = true;
+               _bugDescriptionText1.Text = string.Format 
(CultureInfo.InvariantCulture,
+                       "Steps to execute:{0}{0}" +
+                       "1. Resize the form both vertically and 
horizonally.{0}{0}" +
+                       "2. Click the Swap Orientation button.{0}{0}" +
+                       "3. Repeat steps 1 and 2.{0}{0}" +
+                       "Expected result:{0}{0}" +
+                       "1. Both panels grow vertically and horizonally.",
+                       Environment.NewLine);
+               // 
+               // _tabPage1
+               // 
+               _tabPage1 = new TabPage ();
+               _tabPage1.Text = "#1";
+               _tabPage1.Controls.Add (_bugDescriptionText1);
+               _tabControl.Controls.Add (_tabPage1);
+               // 
+               // _bugDescriptionText2
+               // 
+               _bugDescriptionText2 = new TextBox ();
+               _bugDescriptionText2.Dock = DockStyle.Fill;
+               _bugDescriptionText2.Multiline = true;
+               _bugDescriptionText2.Text = string.Format 
(CultureInfo.InvariantCulture,
+                       "Steps to execute:{0}{0}" +
+                       "1. Modify the value of FixedPanel to Panel1.{0}{0}" +
+                       "2. Resize the form both vertically and 
horizonally.{0}{0}" +
+                       "3. Click the Swap Orientation button.{0}{0}" +
+                       "4. Repeat steps 1 and 2.{0}{0}" +
+                       "Expected result:{0}{0}" +
+                       "1. Only Panel 2 grows vertically and horizonally.",
+                       Environment.NewLine);
+               // 
+               // _tabPage2
+               // 
+               _tabPage2 = new TabPage ();
+               _tabPage2.Text = "#2";
+               _tabPage2.Controls.Add (_bugDescriptionText2);
+               _tabControl.Controls.Add (_tabPage2);
+               // 
+               // _bugDescriptionText3
+               // 
+               _bugDescriptionText3 = new TextBox ();
+               _bugDescriptionText3.Dock = DockStyle.Fill;
+               _bugDescriptionText3.Multiline = true;
+               _bugDescriptionText3.Text = string.Format 
(CultureInfo.InvariantCulture,
+                       "Steps to execute:{0}{0}" +
+                       "1. Modify the value of FixedPanel to Panel2.{0}{0}" +
+                       "2. Resize the form both vertically and 
horizonally.{0}{0}" +
+                       "3. Click the Swap Orientation button.{0}{0}" +
+                       "4. Repeat steps 1 and 2.{0}{0}" +
+                       "Expected result:{0}{0}" +
+                       "1. Only Panel 1 grows vertically and horizonally.",
+                       Environment.NewLine);
+               // 
+               // _tabPage3
+               // 
+               _tabPage3 = new TabPage ();
+               _tabPage3.Text = "#3";
+               _tabPage3.Controls.Add (_bugDescriptionText3);
+               _tabControl.Controls.Add (_tabPage3);
+               // 
+               // InstructionsForm
+               // 
+               ClientSize = new Size (300, 230);
+               Location = new Point (600, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "Instructions - bug #82763";
+       }
+
+       private TextBox _bugDescriptionText1;
+       private TextBox _bugDescriptionText2;
+       private TextBox _bugDescriptionText3;
+       private TabControl _tabControl;
+       private TabPage _tabPage1;
+       private TabPage _tabPage2;
+       private TabPage _tabPage3;
+}


Property changes on: trunk/gert/interactive/bug82763/MainForm.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/interactive/bug82763/default.build
===================================================================
--- trunk/gert/interactive/bug82763/default.build       2007-09-18 11:13:41 UTC 
(rev 85962)
+++ trunk/gert/interactive/bug82763/default.build       2007-09-18 11:42:11 UTC 
(rev 85963)
@@ -0,0 +1,54 @@
+<project name="bug82763" default="rebuild">
+       <target name="mono-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0,MONO" />
+       </target>
+
+       <target name="net-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0" />
+       </target>
+
+       <property name="frameworks" value="mono-2.0,net-2.0" />
+
+       <target name="clean">
+               <delete>
+                       <fileset>
+                               <include name="out" />
+                               <include name="test.exe" />
+                       </fileset>
+               </delete>
+       </target>
+
+       <target name="build">
+               <property name="original.targetframework" 
value="${nant.settings.currentframework}" />
+
+               <foreach property="framework" item="String" in="${frameworks}" 
delim=",">
+                       <if test="${framework::exists(framework)}">
+                               <property name="nant.settings.currentframework" 
value="${framework}" />
+                               <call 
target="${nant.settings.currentframework}" />
+                               <call target="run" />
+                               <call target="clean" />
+                       </if>
+               </foreach>
+
+               <property name="nant.settings.currentframework" 
value="${original.targetframework}" />
+       </target>
+
+       <target name="compile">
+               <csc target="winexe" define="${csc.defines}" output="test.exe" 
warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="MainForm.cs" />
+                       </sources>
+                       <references>
+                               <include name="System.Drawing.dll" />
+                               <include name="System.Windows.Forms.dll" />
+                       </references>
+               </csc>
+       </target>
+
+       <target name="run" depends="compile">
+               <exec program="test.exe" managed="true" output="out" />
+               <fail if="${file::exists('out')}" />
+       </target>
+
+       <target name="rebuild" depends="clean, build" />
+</project>


Property changes on: trunk/gert/interactive/bug82763/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/interactive/bug82838/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug82838/MainForm.cs 2007-09-18 11:13:41 UTC (rev 
85962)
+++ trunk/gert/interactive/bug82838/MainForm.cs 2007-09-18 11:42:11 UTC (rev 
85963)
@@ -0,0 +1,112 @@
+using System;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Globalization;
+using System.Windows.Forms;
+
+class MainForm : Form
+{
+       public MainForm ()
+       {
+               // 
+               // _invalidateButton
+               // 
+               _invalidateButton = new Button ();
+               _invalidateButton.Location = new Point (150, 65);
+               _invalidateButton.Size = new Size (100, 20);
+               _invalidateButton.Text = "Invalidate";
+               _invalidateButton.Click += new EventHandler 
(InvalidateButton_Click);
+               Controls.Add (_invalidateButton);
+               // 
+               // MainForm
+               // 
+               ClientSize = new Size (300, 140);
+               Location = new Point (250, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "bug #82838";
+               Load += new EventHandler (MainForm_Load);
+       }
+
+       [STAThread]
+       static void Main ()
+       {
+               Application.Run (new MainForm ());
+       }
+
+       protected override void OnPaint (PaintEventArgs e)
+       {
+               base.OnPaint (e);
+
+               _num++;
+               using (GraphicsPath path = CreatePath ()) {
+                       if (_num % 2 == 0)
+                               e.Graphics.FillPath (Brushes.Red, path);
+                       else
+                               e.Graphics.FillPath (Brushes.Green, path);
+               }
+       }
+
+       void MainForm_Load (object sender, EventArgs e)
+       {
+               InstructionsForm instructionsForm = new InstructionsForm ();
+               instructionsForm.Show ();
+       }
+
+       void InvalidateButton_Click (object sender, EventArgs e)
+       {
+               Invalidate (Rectangle.Empty);
+       }
+
+       GraphicsPath CreatePath ()
+       {
+               GraphicsPath path = new GraphicsPath ();
+               path.AddEllipse (new Rectangle (20, 20, 100, 100));
+               return path;
+       }
+
+       private int _num;
+       private Button _invalidateButton;
+}
+
+public class InstructionsForm : Form
+{
+       public InstructionsForm ()
+       {
+               // 
+               // _tabControl
+               // 
+               _tabControl = new TabControl ();
+               _tabControl.Dock = DockStyle.Fill;
+               Controls.Add (_tabControl);
+               // 
+               // _bugDescriptionText1
+               // 
+               _bugDescriptionText1 = new TextBox ();
+               _bugDescriptionText1.Dock = DockStyle.Fill;
+               _bugDescriptionText1.Multiline = true;
+               _bugDescriptionText1.Text = string.Format 
(CultureInfo.InvariantCulture,
+                       "Steps to execute:{0}{0}" +
+                       "1. Click the Invalidate button twice.{0}{0}" +
+                       "Expected result:{0}{0}" +
+                       "1. The color of the ellipse changes on each click.",
+                       Environment.NewLine);
+               // 
+               // _tabPage1
+               // 
+               _tabPage1 = new TabPage ();
+               _tabPage1.Text = "#1";
+               _tabPage1.Controls.Add (_bugDescriptionText1);
+               _tabControl.Controls.Add (_tabPage1);
+               // 
+               // InstructionsForm
+               // 
+               ClientSize = new Size (300, 140);
+               Location = new Point (600, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "Instructions - bug #82838";
+       }
+
+       private TextBox _bugDescriptionText1;
+       private TabControl _tabControl;
+       private TabPage _tabPage1;
+}


Property changes on: trunk/gert/interactive/bug82838/MainForm.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/interactive/bug82838/default.build
===================================================================
--- trunk/gert/interactive/bug82838/default.build       2007-09-18 11:13:41 UTC 
(rev 85962)
+++ trunk/gert/interactive/bug82838/default.build       2007-09-18 11:42:11 UTC 
(rev 85963)
@@ -0,0 +1,62 @@
+<project name="bug82838" default="rebuild">
+       <target name="mono-1.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,ONLY_1_1,MONO" />
+       </target>
+
+       <target name="mono-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0,MONO" />
+       </target>
+
+       <target name="net-1.1">
+               <property name="csc.defines" value="NET_1_0,NET_1_1,ONLY_1_1" />
+       </target>
+
+       <target name="net-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0" />
+       </target>
+
+       <property name="frameworks" value="mono-1.0,mono-2.0,net-1.1,net-2.0" />
+
+       <target name="clean">
+               <delete>
+                       <fileset>
+                               <include name="out" />
+                               <include name="test.exe" />
+                       </fileset>
+               </delete>
+       </target>
+
+       <target name="build">
+               <property name="original.targetframework" 
value="${nant.settings.currentframework}" />
+
+               <foreach property="framework" item="String" in="${frameworks}" 
delim=",">
+                       <if test="${framework::exists(framework)}">
+                               <property name="nant.settings.currentframework" 
value="${framework}" />
+                               <call 
target="${nant.settings.currentframework}" />
+                               <call target="run" />
+                               <call target="clean" />
+                       </if>
+               </foreach>
+
+               <property name="nant.settings.currentframework" 
value="${original.targetframework}" />
+       </target>
+
+       <target name="compile">
+               <csc target="winexe" define="${csc.defines}" output="test.exe" 
warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="MainForm.cs" />
+                       </sources>
+                       <references>
+                               <include name="System.Drawing.dll" />
+                               <include name="System.Windows.Forms.dll" />
+                       </references>
+               </csc>
+       </target>
+
+       <target name="run" depends="compile">
+               <exec program="test.exe" managed="true" output="out" />
+               <fail if="${file::exists('out')}" />
+       </target>
+
+       <target name="rebuild" depends="clean, build" />
+</project>


Property changes on: trunk/gert/interactive/bug82838/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: trunk/gert/interactive/known_issues
===================================================================
--- trunk/gert/interactive/known_issues 2007-09-18 11:13:41 UTC (rev 85962)
+++ trunk/gert/interactive/known_issues 2007-09-18 11:42:11 UTC (rev 85963)
@@ -105,7 +105,6 @@
 bug82272/**
 bug82288/**
 bug82356/**
-bug82377/**
 bug82378/**
 bug82404/**
 bug82409/**
@@ -123,14 +122,16 @@
 bug82605/**
 bug82608/**
 bug82654/**
-bug82722/**
 bug82727/**
 bug82739/**
 bug72747/**
 bug82749/**
 bug82750/**
 bug82752/**
+bug82763/**
 bug82765/**
 bug82775/**
 bug82803/**
 bug82806/**
+bug325969/**
+bug325973/**

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to