Permalink
Browse files

Initial revision

svn path=/trunk/winforms/; revision=17141
  • Loading branch information...
0 parents commit 3f4ae14e4406907b3d8397a65b07cd425264896c Duncan Mak committed Aug 6, 2003
Showing with 4,086 additions and 0 deletions.
  1. +3 −0 AUTHORS
  2. +5 −0 README
  3. +32 −0 button/AssemblyInfo.cs
  4. +10 −0 button/Makefile
  5. +16 −0 button/swf-buttons.cmbx
  6. +312 −0 button/swf-buttons.cs
  7. +20 −0 button/swf-buttons.prjx
  8. +32 −0 checkbox/AssemblyInfo.cs
  9. +10 −0 checkbox/Makefile
  10. +16 −0 checkbox/swf-checkboxes.cmbx
  11. +443 −0 checkbox/swf-checkboxes.cs
  12. +20 −0 checkbox/swf-checkboxes.prjx
  13. +10 −0 control-anchors/Makefile
  14. +221 −0 control-anchors/swf-anchors.cs
  15. +10 −0 control-docking/Makefile
  16. +140 −0 control-docking/swf-dock.cs
  17. +32 −0 groupbox/AssemblyInfo.cs
  18. +10 −0 groupbox/Makefile
  19. +16 −0 groupbox/swf-groupboxes.cmbx
  20. +228 −0 groupbox/swf-groupboxes.cs
  21. BIN groupbox/swf-groupboxes.pdb
  22. +20 −0 groupbox/swf-groupboxes.prjx
  23. +32 −0 label/AssemblyInfo.cs
  24. +10 −0 label/Makefile
  25. +16 −0 label/swf-label.cmbx
  26. +337 −0 label/swf-label.cs
  27. +20 −0 label/swf-label.prjx
  28. +32 −0 listbox/AssemblyInfo.cs
  29. +10 −0 listbox/Makefile
  30. +16 −0 listbox/swf-listboxes.cmbx
  31. +404 −0 listbox/swf-listboxes.cs
  32. +20 −0 listbox/swf-listboxes.prjx
  33. +10 −0 listview/Makefile
  34. +431 −0 listview/swf-listview.cs
  35. +10 −0 panel/Makefile
  36. +228 −0 panel/swf-panels.cs
  37. +32 −0 radiobutton/AssemblyInfo.cs
  38. +10 −0 radiobutton/Makefile
  39. +16 −0 radiobutton/swf-radiobuttons.cmbx
  40. +431 −0 radiobutton/swf-radiobuttons.cs
  41. +25 −0 radiobutton/swf-radiobuttons.prjx
  42. +32 −0 textbox/AssemblyInfo.cs
  43. +10 −0 textbox/Makefile
  44. +16 −0 textbox/swf-textboxes.cmbx
  45. +307 −0 textbox/swf-textboxes.cs
  46. +25 −0 textbox/swf-textboxes.prjx
@@ -0,0 +1,3 @@
+Timothy Parez
+Lindsay Boury
+David W. Bettis
5 README
@@ -0,0 +1,5 @@
+Here are some samples of Winforms code.
+
+The sources were originally listed in the Mono Wiki, the URL is:
+
+http://nullenvoid.com/mono/wiki/index.php/WineSamples
@@ -0,0 +1,32 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+
+// Information about this assembly is defined by the following
+// attributes.
+//
+// change them to the information which is associated with the assembly
+// you compile.
+
+[assembly: AssemblyTitle("")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("")]
+[assembly: AssemblyCopyright("")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// The assembly version has following format :
+//
+// Major.Minor.Build.Revision
+//
+// You can specify all values by your own or you can build default build and revision
+// numbers with the '*' character (the default):
+
+[assembly: AssemblyVersion("1.0.*")]
+
+// The following attributes specify the key for the sign of your assembly. See the
+// .NET Framework documentation for more information about signing.
+// This is not required, if you don't want signing let these attributes like they're.
+[assembly: AssemblyDelaySign(false)]
+[assembly: AssemblyKeyFile("")]
@@ -0,0 +1,10 @@
+all: mono
+
+mono: swf-buttons.cs
+ mcs swf-buttons.cs /r:System.Windows.Forms.dll /r:System.Drawing.dll
+
+dotnet: swf-buttons.cs
+ csc swf-buttons.cs /r:System.Windows.Forms.dll /r:System.Drawing.dll
+
+clean:
+ rm swf-buttons.exe -r -f
@@ -0,0 +1,16 @@
+<Combine fileversion="1.0" name="swf-buttons" description="">
+ <StartMode startupentry="swf-buttons" single="True">
+ <Execute entry="swf-buttons" type="None" />
+ </StartMode>
+ <Entries>
+ <Entry filename=".\swf-buttons.prjx" />
+ </Entries>
+ <Configurations active="Debug">
+ <Configuration name="Release">
+ <Entry name="swf-buttons" configurationname="Debug" build="False" />
+ </Configuration>
+ <Configuration name="Debug">
+ <Entry name="swf-buttons" configurationname="Debug" build="False" />
+ </Configuration>
+ </Configurations>
+</Combine>
@@ -0,0 +1,312 @@
+// project created on 27/07/2003 at 22:36
+using System;
+using System.Windows.Forms;
+
+namespace MyFormProject
+{
+ class MainForm : System.Windows.Forms.Form
+ {
+
+ private System.Windows.Forms.Button button;
+ private System.Windows.Forms.Button button2;
+ private System.Windows.Forms.Button button3;
+ private System.Windows.Forms.Button button4;
+ private System.Windows.Forms.Button button5;
+ private System.Windows.Forms.Button button6;
+ private System.Windows.Forms.Button button7;
+ private System.Windows.Forms.Button button8;
+ private System.Windows.Forms.Button button9;
+ private System.Windows.Forms.Button button10;
+ private System.Windows.Forms.Button button11;
+ private System.Windows.Forms.Button button12;
+ private System.Windows.Forms.Button button13;
+ private System.Windows.Forms.Button button14;
+ private System.Windows.Forms.Button button15;
+ private System.Windows.Forms.Button button16;
+ private System.Windows.Forms.Button button17;
+ private System.Windows.Forms.Button button18;
+ private System.Windows.Forms.Button button19;
+ private System.Windows.Forms.Button button20;
+ private System.Windows.Forms.Button button21;
+ private System.Windows.Forms.Button button22;
+ private System.Windows.Forms.Button button23;
+
+ public MainForm()
+ {
+ InitializeComponent();
+ }
+
+ // THIS METHOD IS MAINTAINED BY THE FORM DESIGNER
+ // DO NOT EDIT IT MANUALLY! YOUR CHANGES ARE LIKELY TO BE LOST
+ void InitializeComponent() {
+ this.button20 = new System.Windows.Forms.Button();
+ this.button21 = new System.Windows.Forms.Button();
+ this.button6 = new System.Windows.Forms.Button();
+ this.button18 = new System.Windows.Forms.Button();
+ this.button19 = new System.Windows.Forms.Button();
+ this.button14 = new System.Windows.Forms.Button();
+ this.button17 = new System.Windows.Forms.Button();
+ this.button16 = new System.Windows.Forms.Button();
+ this.button15 = new System.Windows.Forms.Button();
+ this.button8 = new System.Windows.Forms.Button();
+ this.button9 = new System.Windows.Forms.Button();
+ this.button11 = new System.Windows.Forms.Button();
+ this.button10 = new System.Windows.Forms.Button();
+ this.button4 = new System.Windows.Forms.Button();
+ this.button5 = new System.Windows.Forms.Button();
+ this.button = new System.Windows.Forms.Button();
+ this.button7 = new System.Windows.Forms.Button();
+ this.button13 = new System.Windows.Forms.Button();
+ this.button12 = new System.Windows.Forms.Button();
+ this.button2 = new System.Windows.Forms.Button();
+ this.button3 = new System.Windows.Forms.Button();
+ this.button22 = new System.Windows.Forms.Button();
+ this.button23 = new System.Windows.Forms.Button();
+ this.SuspendLayout();
+ //
+ // button20
+ //
+ this.button20.Location = new System.Drawing.Point(8, 616);
+ this.button20.Name = "button20";
+ this.button20.Size = new System.Drawing.Size(480, 32);
+ this.button20.TabIndex = 19;
+ this.button20.Text = "A normal button : TextAlign=BottomLeft";
+ this.button20.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
+ //
+ // button21
+ //
+ this.button21.Location = new System.Drawing.Point(8, 656);
+ this.button21.Name = "button21";
+ this.button21.Size = new System.Drawing.Size(480, 32);
+ this.button21.TabIndex = 20;
+ this.button21.Text = "A normal button : TextAlign=BottomCenter";
+ this.button21.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
+ //
+ // button6
+ //
+ this.button6.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.button6.Location = new System.Drawing.Point(8, 128);
+ this.button6.Name = "button6";
+ this.button6.Size = new System.Drawing.Size(480, 24);
+ this.button6.TabIndex = 5;
+ this.button6.Text = "A normal button : FlatStyle=Flat";
+ //
+ // button18
+ //
+ this.button18.Location = new System.Drawing.Point(8, 536);
+ this.button18.Name = "button18";
+ this.button18.Size = new System.Drawing.Size(480, 32);
+ this.button18.TabIndex = 17;
+ this.button18.Text = "A normal button : TextAlign=MiddleLeft";
+ this.button18.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
+ // button19
+ //
+ this.button19.Location = new System.Drawing.Point(8, 576);
+ this.button19.Name = "button19";
+ this.button19.Size = new System.Drawing.Size(480, 32);
+ this.button19.TabIndex = 18;
+ this.button19.Text = "A normal button : TextAlign=MiddleRight";
+ this.button19.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+ //
+ // button14
+ //
+ this.button14.ForeColor = System.Drawing.Color.Red;
+ this.button14.Location = new System.Drawing.Point(8, 384);
+ this.button14.Name = "button14";
+ this.button14.Size = new System.Drawing.Size(480, 24);
+ this.button14.TabIndex = 13;
+ this.button14.Text = "A normal button : ForeColor=Red";
+ //
+ // button17
+ //
+ this.button17.Location = new System.Drawing.Point(8, 496);
+ this.button17.Name = "button17";
+ this.button17.Size = new System.Drawing.Size(480, 32);
+ this.button17.TabIndex = 16;
+ this.button17.Text = "A normal button : TextAlign=TopRight";
+ this.button17.TextAlign = System.Drawing.ContentAlignment.TopRight;
+ //
+ // button16
+ //
+ this.button16.Location = new System.Drawing.Point(8, 456);
+ this.button16.Name = "button16";
+ this.button16.Size = new System.Drawing.Size(480, 32);
+ this.button16.TabIndex = 15;
+ this.button16.Text = "A normal button : TextAlign=TopCenter";
+ this.button16.TextAlign = System.Drawing.ContentAlignment.TopCenter;
+ //
+ // button15
+ //
+ this.button15.Location = new System.Drawing.Point(8, 416);
+ this.button15.Name = "button15";
+ this.button15.Size = new System.Drawing.Size(480, 32);
+ this.button15.TabIndex = 14;
+ this.button15.Text = "A normal button : TextAlign=TopLeft";
+ this.button15.TextAlign = System.Drawing.ContentAlignment.TopLeft;
+ //
+ // button8
+ //
+ this.button8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
+ this.button8.Location = new System.Drawing.Point(8, 192);
+ this.button8.Name = "button8";
+ this.button8.Size = new System.Drawing.Size(480, 24);
+ this.button8.TabIndex = 7;
+ this.button8.Text = "A normal button : Font.Bold=true";
+ //
+ // button9
+ //
+ this.button9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
+ this.button9.Location = new System.Drawing.Point(8, 224);
+ this.button9.Name = "button9";
+ this.button9.Size = new System.Drawing.Size(480, 24);
+ this.button9.TabIndex = 8;
+ this.button9.Text = "A normal button : Font.Italic=true";
+ //
+ // button11
+ //
+ this.button11.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
+ this.button11.Location = new System.Drawing.Point(8, 288);
+ this.button11.Name = "button11";
+ this.button11.Size = new System.Drawing.Size(480, 24);
+ this.button11.TabIndex = 10;
+ this.button11.Text = "A normal button : Font.Underline=true";
+ //
+ // button10
+ //
+ this.button10.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Strikeout, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
+ this.button10.Location = new System.Drawing.Point(8, 256);
+ this.button10.Name = "button10";
+ this.button10.Size = new System.Drawing.Size(480, 24);
+ this.button10.TabIndex = 9;
+ this.button10.Text = "A normal button : Font.Strikeout=true";
+ //
+ // button4
+ //
+ this.button4.Enabled = false;
+ this.button4.Location = new System.Drawing.Point(8, 64);
+ this.button4.Name = "button4";
+ this.button4.Size = new System.Drawing.Size(480, 24);
+ this.button4.TabIndex = 3;
+ this.button4.Text = "A normal button : Enabled=false";
+ //
+ // button5
+ //
+ this.button5.BackColor = System.Drawing.Color.Red;
+ this.button5.Location = new System.Drawing.Point(8, 96);
+ this.button5.Name = "button5";
+ this.button5.Size = new System.Drawing.Size(480, 24);
+ this.button5.TabIndex = 4;
+ this.button5.Text = "A normal button : BackColor=Red";
+ //
+ // button
+ //
+ this.button.Dock = System.Windows.Forms.DockStyle.Top;
+ this.button.Location = new System.Drawing.Point(0, 0);
+ this.button.Name = "button";
+ this.button.Size = new System.Drawing.Size(496, 24);
+ this.button.TabIndex = 0;
+ this.button.Text = "A normal button : Dock=Top";
+ //
+ // button7
+ //
+ this.button7.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.button7.Location = new System.Drawing.Point(8, 160);
+ this.button7.Name = "button7";
+ this.button7.Size = new System.Drawing.Size(480, 24);
+ this.button7.TabIndex = 6;
+ this.button7.Text = "A normal button : FlatStyle=Popup";
+ //
+ // button13
+ //
+ this.button13.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
+ this.button13.Location = new System.Drawing.Point(8, 352);
+ this.button13.Name = "button13";
+ this.button13.Size = new System.Drawing.Size(480, 24);
+ this.button13.TabIndex = 12;
+ this.button13.Text = "A normal button : Font=Verdana; 8,25pt";
+ //
+ // button12
+ //
+ this.button12.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
+ this.button12.Location = new System.Drawing.Point(8, 320);
+ this.button12.Name = "button12";
+ this.button12.Size = new System.Drawing.Size(480, 24);
+ this.button12.TabIndex = 11;
+ this.button12.Text = "A normal button : Font.Size=10";
+ //
+ // button2
+ //
+ this.button2.Location = new System.Drawing.Point(8, 32);
+ this.button2.Name = "button2";
+ this.button2.Size = new System.Drawing.Size(480, 24);
+ this.button2.TabIndex = 1;
+ this.button2.Text = "A normal button";
+ //
+ // button3
+ //
+ this.button3.Dock = System.Windows.Forms.DockStyle.Bottom;
+ this.button3.Location = new System.Drawing.Point(0, 765);
+ this.button3.Name = "button3";
+ this.button3.Size = new System.Drawing.Size(496, 24);
+ this.button3.TabIndex = 2;
+ this.button3.Text = "A normal button : Dock=Bottom";
+ //
+ // button22
+ //
+ this.button22.Location = new System.Drawing.Point(8, 696);
+ this.button22.Name = "button22";
+ this.button22.Size = new System.Drawing.Size(480, 32);
+ this.button22.TabIndex = 21;
+ this.button22.Text = "A normal button : TextAlign=BottomRight";
+ this.button22.TextAlign = System.Drawing.ContentAlignment.BottomRight;
+ //
+ // button23
+ //
+ this.button23.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.button23.Location = new System.Drawing.Point(8, 736);
+ this.button23.Name = "button23";
+ this.button23.Size = new System.Drawing.Size(480, 24);
+ this.button23.TabIndex = 22;
+ this.button23.Text = "A normal button : Anchor=All";
+ //
+ // MainForm
+ //
+ this.ClientSize = new System.Drawing.Size(496, 789);
+ this.Controls.AddRange(new System.Windows.Forms.Control[] {
+ this.button23,
+ this.button22,
+ this.button21,
+ this.button20,
+ this.button19,
+ this.button18,
+ this.button17,
+ this.button16,
+ this.button15,
+ this.button14,
+ this.button13,
+ this.button12,
+ this.button11,
+ this.button10,
+ this.button9,
+ this.button8,
+ this.button7,
+ this.button6,
+ this.button5,
+ this.button4,
+ this.button3,
+ this.button2,
+ this.button});
+ this.Text = "SWF-Buttons";
+ this.ResumeLayout(false);
+ }
+
+ [STAThread]
+ public static void Main(string[] args)
+ {
+ Application.Run(new MainForm());
+ }
+ }
+}
Oops, something went wrong.

0 comments on commit 3f4ae14

Please sign in to comment.