Author: toshok
Date: 2006-09-26 16:59:27 -0400 (Tue, 26 Sep 2006)
New Revision: 65935
Added:
trunk/winforms/forms/text.cs
Modified:
trunk/winforms/forms/Makefile
Log:
add a test to see if we can get a wm border/titlebar to appear/disappear
Modified: trunk/winforms/forms/Makefile
===================================================================
--- trunk/winforms/forms/Makefile 2006-09-26 20:56:40 UTC (rev 65934)
+++ trunk/winforms/forms/Makefile 2006-09-26 20:59:27 UTC (rev 65935)
@@ -1,4 +1,4 @@
-all: FormsTest.exe FormsMdi.exe FormsHello.exe CustomControl.exe
ImageViewer.exe radiobuttons.exe
+all: FormsTest.exe FormsMdi.exe FormsHello.exe CustomControl.exe
ImageViewer.exe radiobuttons.exe text.exe
FormsTest.exe: FormsTest.cs
mcs FormsTest.cs -debug \
@@ -30,6 +30,9 @@
radiobuttons.exe: radiobuttons.cs
mcs radiobuttons.cs -debug -r:System.Windows.Forms.dll
-r:System.Drawing.dll
+text.exe: text.cs
+ mcs text.cs -debug -r:System.Windows.Forms.dll
+
clean:
rm -f FormsTest.exe
rm -f FormsMdi.exe
@@ -37,3 +40,4 @@
rm -f CustomControl.exe
rm -f ImageViewer.exe
rm -f radiobuttons.exe
+ rm -f text.exe
Added: trunk/winforms/forms/text.cs
===================================================================
--- trunk/winforms/forms/text.cs 2006-09-26 20:56:40 UTC (rev 65934)
+++ trunk/winforms/forms/text.cs 2006-09-26 20:59:27 UTC (rev 65935)
@@ -0,0 +1,30 @@
+
+using System.Windows.Forms;
+using System;
+
+public class Foo {
+ static Form f;
+
+ public static void button_clicked (object sender, EventArgs ea) {
+ if (f.Text == "")
+ f.Text = "hi there!";
+ else
+ f.Text = "";
+ }
+
+ public static void Main (string[] args) {
+ f = new Form ();
+ Button b = new Button ();
+ b.Text = "Click me to toggle title";
+ b.Click += new EventHandler (button_clicked);
+ //f.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
+ f.Controls.Add (b);
+ f.ControlBox = false;
+ f.MaximizeBox = false;
+ f.MinimizeBox = false;
+ f.Name = "";
+ f.Text = "";
+
+ Application.Run (f);
+ }
+}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches