Author: gert
Date: 2007-05-06 03:22:48 -0400 (Sun, 06 May 2007)
New Revision: 76767
Added:
trunk/gert/interactive/bug81522/
trunk/gert/interactive/bug81522/MainForm.cs
trunk/gert/interactive/bug81522/default.build
trunk/gert/interactive/bug81523/
trunk/gert/interactive/bug81523/MainForm.cs
trunk/gert/interactive/bug81523/default.build
trunk/gert/interactive/bug81524/
trunk/gert/interactive/bug81524/MainForm.cs
trunk/gert/interactive/bug81524/default.build
Log:
Added tests for bug #81522, #81523 and #81524.
Added: trunk/gert/interactive/bug81522/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug81522/MainForm.cs 2007-05-06 07:22:05 UTC (rev
76766)
+++ trunk/gert/interactive/bug81522/MainForm.cs 2007-05-06 07:22:48 UTC (rev
76767)
@@ -0,0 +1,200 @@
+using System;
+using System.Drawing;
+using System.Globalization;
+using System.Windows.Forms;
+
+public class MainForm : Form
+{
+ public MainForm ()
+ {
+ //
+ // _toolBar
+ //
+ _toolBar = new ToolBar ();
+ _toolBar.DropDownArrows = true;
+ _toolBar.Dock = DockStyle.Top;
+ _toolBar.ShowToolTips = true;
+ _toolBar.TabIndex = 1;
+ Controls.Add (_toolBar);
+ //
+ // _toolBarButton1
+ //
+ _toolBarButton1 = new ToolBarButton ();
+ _toolBar.Buttons.Add (_toolBarButton1);
+ //
+ // _toolBarButton2
+ //
+ _toolBarButton2 = new ToolBarButton ();
+ _toolBar.Buttons.Add (_toolBarButton2);
+ //
+ // _toolBarButton3
+ //
+ _toolBarButton3 = new ToolBarButton ();
+ _toolBar.Buttons.Add (_toolBarButton3);
+ //
+ // _styleGroupBox
+ //
+ _styleGroupBox = new GroupBox ();
+ _styleGroupBox.Location = new Point (8, 30);
+ _styleGroupBox.Size = new Size (270, 65);
+ _styleGroupBox.Text = "Style";
+ Controls.Add (_styleGroupBox);
+ //
+ // _dropDownButtonStyleRadioButton
+ //
+ _dropDownButtonStyleRadioButton = new RadioButton ();
+ _dropDownButtonStyleRadioButton.Checked =
(_toolBarButton2.Style == ToolBarButtonStyle.DropDownButton);
+ _dropDownButtonStyleRadioButton.Location = new Point (8, 15);
+ _dropDownButtonStyleRadioButton.Text = "DropDownButton";
+ _dropDownButtonStyleRadioButton.Width = 120;
+ _dropDownButtonStyleRadioButton.CheckedChanged += new
EventHandler (DropDownButtonStyleRadioButton_CheckedChanged);
+ _styleGroupBox.Controls.Add (_dropDownButtonStyleRadioButton);
+ //
+ // _pushButtonStyleRadioButton
+ //
+ _pushButtonStyleRadioButton = new RadioButton ();
+ _pushButtonStyleRadioButton.Checked = (_toolBarButton2.Style ==
ToolBarButtonStyle.PushButton);
+ _pushButtonStyleRadioButton.Location = new Point (8, 35);
+ _pushButtonStyleRadioButton.Text = "PushButton";
+ _pushButtonStyleRadioButton.CheckedChanged += new EventHandler
(PushButtonStyleRadioButton_CheckedChanged);
+ _styleGroupBox.Controls.Add (_pushButtonStyleRadioButton);
+ //
+ // _separatorStyleRadioButton
+ //
+ _separatorStyleRadioButton = new RadioButton ();
+ _separatorStyleRadioButton.Checked = (_toolBarButton2.Style ==
ToolBarButtonStyle.Separator);
+ _separatorStyleRadioButton.Location = new Point (150, 15);
+ _separatorStyleRadioButton.Text = "Separator";
+ _separatorStyleRadioButton.CheckedChanged += new EventHandler
(SeparatorStyleRadioButton_CheckedChanged);
+ _styleGroupBox.Controls.Add (_separatorStyleRadioButton);
+ //
+ // _toggleButtonStyleRadioButton
+ //
+ _toggleButtonStyleRadioButton = new RadioButton ();
+ _toggleButtonStyleRadioButton.Checked = (_toolBarButton2.Style
== ToolBarButtonStyle.ToggleButton);
+ _toggleButtonStyleRadioButton.Location = new Point (150, 35);
+ _toggleButtonStyleRadioButton.Text = "ToggleButton";
+ _toggleButtonStyleRadioButton.CheckedChanged += new
EventHandler (ToggleButtonStyleRadioButton_CheckedChanged);
+ _styleGroupBox.Controls.Add (_toggleButtonStyleRadioButton);
+ //
+ // MainForm
+ //
+ ClientSize = new Size (285, 105);
+ Location = new Point (250, 100);
+ StartPosition = FormStartPosition.Manual;
+ Text = "bug #81522";
+ 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 ();
+ }
+
+ void DropDownButtonStyleRadioButton_CheckedChanged (object sender,
EventArgs e)
+ {
+ if (_dropDownButtonStyleRadioButton.Checked)
+ _toolBarButton2.Style =
ToolBarButtonStyle.DropDownButton;
+ }
+
+ void PushButtonStyleRadioButton_CheckedChanged (object sender,
EventArgs e)
+ {
+ if (_pushButtonStyleRadioButton.Checked)
+ _toolBarButton2.Style = ToolBarButtonStyle.PushButton;
+ }
+
+ void SeparatorStyleRadioButton_CheckedChanged (object sender, EventArgs
e)
+ {
+ if (_separatorStyleRadioButton.Checked)
+ _toolBarButton2.Style = ToolBarButtonStyle.Separator;
+ }
+
+ void ToggleButtonStyleRadioButton_CheckedChanged (object sender,
EventArgs e)
+ {
+ if (_toggleButtonStyleRadioButton.Checked)
+ _toolBarButton2.Style = ToolBarButtonStyle.ToggleButton;
+ }
+
+ private ToolBar _toolBar;
+ private ToolBarButton _toolBarButton1;
+ private ToolBarButton _toolBarButton2;
+ private ToolBarButton _toolBarButton3;
+ private GroupBox _styleGroupBox;
+ private RadioButton _toggleButtonStyleRadioButton;
+ private RadioButton _separatorStyleRadioButton;
+ private RadioButton _pushButtonStyleRadioButton;
+ private RadioButton _dropDownButtonStyleRadioButton;
+}
+
+public class InstructionsForm : Form
+{
+ public InstructionsForm ()
+ {
+ //
+ // _tabControl
+ //
+ _tabControl = new TabControl ();
+ _tabControl.Dock = DockStyle.Fill;
+ Controls.Add (_tabControl);
+ //
+ // _bugDescriptionText1
+ //
+ _bugDescriptionText1 = new TextBox ();
+ _bugDescriptionText1.Multiline = true;
+ _bugDescriptionText1.Dock = DockStyle.Fill;
+ _bugDescriptionText1.Text = string.Format
(CultureInfo.InvariantCulture,
+ "Steps to execute:{0}{0}" +
+ "1. Select the Separator radiobutton.{0}{0}" +
+ "Expected result:{0}{0}" +
+ "1. The second button is now a small separator bar.",
+ Environment.NewLine);
+ //
+ // _tabPage1
+ //
+ _tabPage1 = new TabPage ();
+ _tabPage1.Text = "#1";
+ _tabPage1.Controls.Add (_bugDescriptionText1);
+ _tabControl.Controls.Add (_tabPage1);
+ //
+ // _bugDescriptionText2
+ //
+ _bugDescriptionText2 = new TextBox ();
+ _bugDescriptionText2.Multiline = true;
+ _bugDescriptionText2.Dock = DockStyle.Fill;
+ _bugDescriptionText2.Text = string.Format
(CultureInfo.InvariantCulture,
+ "Steps to execute:{0}{0}" +
+ "1. Select the DropDownButton radiobutton.{0}{0}" +
+ "Expected result:{0}{0}" +
+ "1. The second button now has a dropdown arrow.{0}{0}" +
+ "2. The width of the second button matches the width of
the " +
+ "other buttons.",
+ Environment.NewLine);
+ //
+ // _tabPage2
+ //
+ _tabPage2 = new TabPage ();
+ _tabPage2.Text = "#2";
+ _tabPage2.Controls.Add (_bugDescriptionText2);
+ _tabControl.Controls.Add (_tabPage2);
+ //
+ // InstructionsForm
+ //
+ ClientSize = new Size (360, 170);
+ Location = new Point (600, 100);
+ StartPosition = FormStartPosition.Manual;
+ Text = "Instructions - bug #81522";
+ }
+
+ private TextBox _bugDescriptionText1;
+ private TextBox _bugDescriptionText2;
+ private TabControl _tabControl;
+ private TabPage _tabPage1;
+ private TabPage _tabPage2;
+}
Property changes on: trunk/gert/interactive/bug81522/MainForm.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/interactive/bug81522/default.build
===================================================================
--- trunk/gert/interactive/bug81522/default.build 2007-05-06 07:22:05 UTC
(rev 76766)
+++ trunk/gert/interactive/bug81522/default.build 2007-05-06 07:22:48 UTC
(rev 76767)
@@ -0,0 +1,62 @@
+<project name="bug81522" 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/bug81522/default.build
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/interactive/bug81523/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug81523/MainForm.cs 2007-05-06 07:22:05 UTC (rev
76766)
+++ trunk/gert/interactive/bug81523/MainForm.cs 2007-05-06 07:22:48 UTC (rev
76767)
@@ -0,0 +1,177 @@
+using System;
+using System.Drawing;
+using System.Globalization;
+using System.Windows.Forms;
+
+public class MainForm : Form
+{
+ public MainForm ()
+ {
+ //
+ // _toolBar
+ //
+ _toolBar = new ToolBar ();
+ _toolBar.DropDownArrows = true;
+ _toolBar.Dock = DockStyle.Top;
+ _toolBar.ShowToolTips = true;
+ _toolBar.TabIndex = 1;
+ Controls.Add (_toolBar);
+ //
+ // _toolBarButton1
+ //
+ _toolBarButton1 = new ToolBarButton ();
+ _toolBar.Buttons.Add (_toolBarButton1);
+ //
+ // _toolBarButton2
+ //
+ _toolBarButton2 = new ToolBarButton ();
+ _toolBar.Buttons.Add (_toolBarButton2);
+ //
+ // _toolBarButton3
+ //
+ _toolBarButton3 = new ToolBarButton ();
+ _toolBar.Buttons.Add (_toolBarButton3);
+ //
+ // _styleGroupBox
+ //
+ _styleGroupBox = new GroupBox ();
+ _styleGroupBox.Location = new Point (8, 30);
+ _styleGroupBox.Size = new Size (270, 65);
+ _styleGroupBox.Text = "Style";
+ Controls.Add (_styleGroupBox);
+ //
+ // _dropDownButtonStyleRadioButton
+ //
+ _dropDownButtonStyleRadioButton = new RadioButton ();
+ _dropDownButtonStyleRadioButton.Checked =
(_toolBarButton2.Style == ToolBarButtonStyle.DropDownButton);
+ _dropDownButtonStyleRadioButton.Location = new Point (8, 15);
+ _dropDownButtonStyleRadioButton.Text = "DropDownButton";
+ _dropDownButtonStyleRadioButton.Width = 120;
+ _dropDownButtonStyleRadioButton.CheckedChanged += new
EventHandler (DropDownButtonStyleRadioButton_CheckedChanged);
+ _styleGroupBox.Controls.Add (_dropDownButtonStyleRadioButton);
+ //
+ // _pushButtonStyleRadioButton
+ //
+ _pushButtonStyleRadioButton = new RadioButton ();
+ _pushButtonStyleRadioButton.Checked = (_toolBarButton2.Style ==
ToolBarButtonStyle.PushButton);
+ _pushButtonStyleRadioButton.Location = new Point (8, 35);
+ _pushButtonStyleRadioButton.Text = "PushButton";
+ _pushButtonStyleRadioButton.CheckedChanged += new EventHandler
(PushButtonStyleRadioButton_CheckedChanged);
+ _styleGroupBox.Controls.Add (_pushButtonStyleRadioButton);
+ //
+ // _separatorStyleRadioButton
+ //
+ _separatorStyleRadioButton = new RadioButton ();
+ _separatorStyleRadioButton.Checked = (_toolBarButton2.Style ==
ToolBarButtonStyle.Separator);
+ _separatorStyleRadioButton.Location = new Point (150, 15);
+ _separatorStyleRadioButton.Text = "Separator";
+ _separatorStyleRadioButton.CheckedChanged += new EventHandler
(SeparatorStyleRadioButton_CheckedChanged);
+ _styleGroupBox.Controls.Add (_separatorStyleRadioButton);
+ //
+ // _toggleButtonStyleRadioButton
+ //
+ _toggleButtonStyleRadioButton = new RadioButton ();
+ _toggleButtonStyleRadioButton.Checked = (_toolBarButton2.Style
== ToolBarButtonStyle.ToggleButton);
+ _toggleButtonStyleRadioButton.Location = new Point (150, 35);
+ _toggleButtonStyleRadioButton.Text = "ToggleButton";
+ _toggleButtonStyleRadioButton.CheckedChanged += new
EventHandler (ToggleButtonStyleRadioButton_CheckedChanged);
+ _styleGroupBox.Controls.Add (_toggleButtonStyleRadioButton);
+ //
+ // MainForm
+ //
+ ClientSize = new Size (285, 105);
+ Location = new Point (250, 100);
+ StartPosition = FormStartPosition.Manual;
+ Text = "bug #81523";
+ 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 ();
+ }
+
+ void DropDownButtonStyleRadioButton_CheckedChanged (object sender,
EventArgs e)
+ {
+ if (_dropDownButtonStyleRadioButton.Checked)
+ _toolBarButton2.Style =
ToolBarButtonStyle.DropDownButton;
+ }
+
+ void PushButtonStyleRadioButton_CheckedChanged (object sender,
EventArgs e)
+ {
+ if (_pushButtonStyleRadioButton.Checked)
+ _toolBarButton2.Style = ToolBarButtonStyle.PushButton;
+ }
+
+ void SeparatorStyleRadioButton_CheckedChanged (object sender, EventArgs
e)
+ {
+ if (_separatorStyleRadioButton.Checked)
+ _toolBarButton2.Style = ToolBarButtonStyle.Separator;
+ }
+
+ void ToggleButtonStyleRadioButton_CheckedChanged (object sender,
EventArgs e)
+ {
+ if (_toggleButtonStyleRadioButton.Checked)
+ _toolBarButton2.Style = ToolBarButtonStyle.ToggleButton;
+ }
+
+ private ToolBar _toolBar;
+ private ToolBarButton _toolBarButton1;
+ private ToolBarButton _toolBarButton2;
+ private ToolBarButton _toolBarButton3;
+ private GroupBox _styleGroupBox;
+ private RadioButton _toggleButtonStyleRadioButton;
+ private RadioButton _separatorStyleRadioButton;
+ private RadioButton _pushButtonStyleRadioButton;
+ private RadioButton _dropDownButtonStyleRadioButton;
+}
+
+public class InstructionsForm : Form
+{
+ public InstructionsForm ()
+ {
+ //
+ // _tabControl
+ //
+ _tabControl = new TabControl ();
+ _tabControl.Dock = DockStyle.Fill;
+ Controls.Add (_tabControl);
+ //
+ // _bugDescriptionText1
+ //
+ _bugDescriptionText1 = new TextBox ();
+ _bugDescriptionText1.Multiline = true;
+ _bugDescriptionText1.Dock = DockStyle.Fill;
+ _bugDescriptionText1.Text = string.Format
(CultureInfo.InvariantCulture,
+ "Expected result on start-up:{0}{0}" +
+ "1. The Style groupbox is positioned directly
underneath the " +
+ "toolbar.{0}{0}" +
+ "2. The (header) text of the groupbox is fully
visible.",
+ Environment.NewLine);
+ //
+ // _tabPage1
+ //
+ _tabPage1 = new TabPage ();
+ _tabPage1.Text = "#1";
+ _tabPage1.Controls.Add (_bugDescriptionText1);
+ _tabControl.Controls.Add (_tabPage1);
+ //
+ // InstructionsForm
+ //
+ ClientSize = new Size (360, 120);
+ Location = new Point (600, 100);
+ StartPosition = FormStartPosition.Manual;
+ Text = "Instructions - bug #81523";
+ }
+
+ private TextBox _bugDescriptionText1;
+ private TabControl _tabControl;
+ private TabPage _tabPage1;
+}
Property changes on: trunk/gert/interactive/bug81523/MainForm.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/interactive/bug81523/default.build
===================================================================
--- trunk/gert/interactive/bug81523/default.build 2007-05-06 07:22:05 UTC
(rev 76766)
+++ trunk/gert/interactive/bug81523/default.build 2007-05-06 07:22:48 UTC
(rev 76767)
@@ -0,0 +1,62 @@
+<project name="bug81523" 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/bug81523/default.build
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/interactive/bug81524/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug81524/MainForm.cs 2007-05-06 07:22:05 UTC (rev
76766)
+++ trunk/gert/interactive/bug81524/MainForm.cs 2007-05-06 07:22:48 UTC (rev
76767)
@@ -0,0 +1,196 @@
+using System;
+using System.Drawing;
+using System.Globalization;
+using System.Windows.Forms;
+
+public class MainForm : Form
+{
+ public MainForm ()
+ {
+ //
+ // _toolBar
+ //
+ _toolBar = new ToolBar ();
+ _toolBar.DropDownArrows = true;
+ _toolBar.Dock = DockStyle.Top;
+ _toolBar.ShowToolTips = true;
+ _toolBar.TabIndex = 1;
+ Controls.Add (_toolBar);
+ //
+ // _toolBarButton1
+ //
+ _toolBarButton1 = new ToolBarButton ();
+ _toolBarButton1.Text = "Open";
+ _toolBar.Buttons.Add (_toolBarButton1);
+ //
+ // _toolBarButton2
+ //
+ _toolBarButton2 = new ToolBarButton ();
+ _toolBarButton2.Text = "New Document";
+ _toolBar.Buttons.Add (_toolBarButton2);
+ //
+ // _toolBarButton3
+ //
+ _toolBarButton3 = new ToolBarButton ();
+ _toolBar.Buttons.Add (_toolBarButton3);
+ //
+ // _toolBarButton4
+ //
+ _toolBarButton4 = new ToolBarButton ();
+ _toolBarButton4.Text = "Quit";
+ _toolBar.Buttons.Add (_toolBarButton4);
+ //
+ // _textCheckBox
+ //
+ _textCheckBox = new CheckBox ();
+ _textCheckBox.Checked = true;
+ _textCheckBox.Location = new Point (8, 45);
+ _textCheckBox.Text = "Text";
+ _textCheckBox.CheckedChanged += new EventHandler
(TextCheckBox_CheckedChanged);
+ Controls.Add (_textCheckBox);
+ //
+ // MainForm
+ //
+ ClientSize = new Size (400, 105);
+ Location = new Point (250, 100);
+ StartPosition = FormStartPosition.Manual;
+ Text = "bug #81524";
+ 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 ();
+ }
+
+ void TextCheckBox_CheckedChanged (object sender, EventArgs e)
+ {
+ if (_textCheckBox.Checked) {
+ _toolBarButton1.Text = "Open";
+ _toolBarButton2.Text = "Save";
+ _toolBarButton4.Text = "Exit The Application Right Now";
+ } else {
+ _toolBarButton1.Text = string.Empty;
+ _toolBarButton2.Text = string.Empty;
+ _toolBarButton4.Text = string.Empty;
+ }
+ }
+
+ private ToolBar _toolBar;
+ private ToolBarButton _toolBarButton1;
+ private ToolBarButton _toolBarButton2;
+ private ToolBarButton _toolBarButton3;
+ private ToolBarButton _toolBarButton4;
+ private CheckBox _textCheckBox;
+}
+
+public class InstructionsForm : Form
+{
+ public InstructionsForm ()
+ {
+ //
+ // _tabControl
+ //
+ _tabControl = new TabControl ();
+ _tabControl.Dock = DockStyle.Fill;
+ Controls.Add (_tabControl);
+ //
+ // _bugDescriptionText1
+ //
+ _bugDescriptionText1 = new TextBox ();
+ _bugDescriptionText1.Multiline = true;
+ _bugDescriptionText1.Dock = DockStyle.Fill;
+ _bugDescriptionText1.Text = string.Format
(CultureInfo.InvariantCulture,
+ "Expected result on start-up:{0}{0}" +
+ "1. The Text checkbox is positioned directly underneath
the " +
+ "toolbar.{0}{0}" +
+ "2. The buttons have the following text visible:{0}{0}"
+
+ " * Open{0}" +
+ " * New Document{0}" +
+ " * (Nothing){0}" +
+ " * Quit{0}{0}" +
+ "3. All buttons have the same height.{0}{0}" +
+ "4. The width of buttons 1, 2 and 4 is automatically
sized to fit " +
+ "their respective text.{0}{0}" +
+ "5. The width of button 3 matches that of button
2.{0}{0}",
+ Environment.NewLine);
+ //
+ // _tabPage1
+ //
+ _tabPage1 = new TabPage ();
+ _tabPage1.Text = "#1";
+ _tabPage1.Controls.Add (_bugDescriptionText1);
+ _tabControl.Controls.Add (_tabPage1);
+ //
+ // _bugDescriptionText2
+ //
+ _bugDescriptionText2 = new TextBox ();
+ _bugDescriptionText2.Multiline = true;
+ _bugDescriptionText2.Dock = DockStyle.Fill;
+ _bugDescriptionText2.Text = string.Format
(CultureInfo.InvariantCulture,
+ "Steps to execute:{0}{0}" +
+ "1. Uncheck the Text checkbox.{0}{0}" +
+ "Expected result:{0}{0}" +
+ "1. The height of the buttons does not change.{0}{0}" +
+ "2. The width of all buttons is resized to match the
width of " +
+ "button 2.{0}{0}" +
+ "3. None of the buttons have text.",
+ Environment.NewLine);
+ //
+ // _tabPage2
+ //
+ _tabPage2 = new TabPage ();
+ _tabPage2.Text = "#2";
+ _tabPage2.Controls.Add (_bugDescriptionText2);
+ _tabControl.Controls.Add (_tabPage2);
+ //
+ // _bugDescriptionText3
+ //
+ _bugDescriptionText3 = new TextBox ();
+ _bugDescriptionText3.Multiline = true;
+ _bugDescriptionText3.Dock = DockStyle.Fill;
+ _bugDescriptionText3.Text = string.Format
(CultureInfo.InvariantCulture,
+ "Steps to execute:{0}{0}" +
+ "1. Check the Text checkbox.{0}{0}" +
+ "Expected result:{0}{0}" +
+ "1. The height of the buttons does not change.{0}{0}" +
+ "2. The buttons have the following text visible:{0}{0}"
+
+ " * Open{0}" +
+ " * Save{0}" +
+ " * (Nothing){0}" +
+ " * Exit The Application Right Now{0}{0}" +
+ "3. The width of buttons 1, 2 and 4 is automatically
resized " +
+ "to fit their respective text.{0}{0}" +
+ "4. The width of button 3 did not change.",
+ Environment.NewLine);
+ //
+ // _tabPage3
+ //
+ _tabPage3 = new TabPage ();
+ _tabPage3.Text = "#3";
+ _tabPage3.Controls.Add (_bugDescriptionText3);
+ _tabControl.Controls.Add (_tabPage3);
+ //
+ // InstructionsForm
+ //
+ ClientSize = new Size (360, 290);
+ Location = new Point (700, 100);
+ StartPosition = FormStartPosition.Manual;
+ Text = "Instructions - bug #81524";
+ }
+
+ 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/bug81524/MainForm.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/interactive/bug81524/default.build
===================================================================
--- trunk/gert/interactive/bug81524/default.build 2007-05-06 07:22:05 UTC
(rev 76766)
+++ trunk/gert/interactive/bug81524/default.build 2007-05-06 07:22:48 UTC
(rev 76767)
@@ -0,0 +1,62 @@
+<project name="bug81523" 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/bug81524/default.build
___________________________________________________________________
Name: svn:eol-style
+ native
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches