Treceți la conținutul principal

drawings cs

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;


namespace Drawings
{
 /// <summary>
 /// Summary description for Form1.
 /// </summary>
 public class Form1 : System.Windows.Forms.Form
 {
  private System.Windows.Forms.MainMenu mainMenu1;
  private System.Windows.Forms.MenuItem menuItem1;
  private System.Windows.Forms.MenuItem menuItem2;
  private System.Windows.Forms.MenuItem menuItem3;
  private System.Windows.Forms.MenuItem menuItem4;
  private System.Windows.Forms.MenuItem menuItem5;
  private System.Windows.Forms.MenuItem menuItem6;
  private System.Windows.Forms.MenuItem menuItem7;
  private System.Windows.Forms.Button button1;
  private System.Windows.Forms.ComboBox comboBox1;
  private System.Windows.Forms.TextBox xe;
  private System.Windows.Forms.TextBox ye;
  private System.Windows.Forms.Label label1;
  private System.Windows.Forms.Label label2;
  private System.Windows.Forms.TextBox xe2;
  private System.Windows.Forms.Label label3;
  private System.Windows.Forms.Label label4;
  private System.Windows.Forms.TextBox ye2;
  private System.Windows.Forms.PictureBox pictureBox1;
  private System.Windows.Forms.PictureBox pictureBox2;
  private System.Windows.Forms.ColorDialog colorDialog1;
  private System.Windows.Forms.PictureBox pictureBox3;
  private System.Windows.Forms.Button button2;
  private System.Windows.Forms.Button button3;
  /// <summary>
  /// Required designer variable.
  /// </summary>
  private System.ComponentModel.Container components = null;

  public Form1()
  {
   //
   // Required for Windows Form Designer support
   //
   InitializeComponent();

   //
   // TODO: Add any constructor code after InitializeComponent call
   //
  }

  /// <summary>
  /// Clean up any resources being used.
  /// </summary>
  protected override void Dispose( bool disposing )
  {
   if( disposing )
   {
    if (components != null) 
    {
     components.Dispose();
    }
   }
   base.Dispose( disposing );
  }

  #region Windows Form Designer generated code
  /// <summary>
  /// Required method for Designer support - do not modify
  /// the contents of this method with the code editor.
  /// </summary>
  private void InitializeComponent()
  {
   this.mainMenu1 = new System.Windows.Forms.MainMenu();
   this.menuItem1 = new System.Windows.Forms.MenuItem();
   this.menuItem2 = new System.Windows.Forms.MenuItem();
   this.menuItem3 = new System.Windows.Forms.MenuItem();
   this.menuItem4 = new System.Windows.Forms.MenuItem();
   this.menuItem5 = new System.Windows.Forms.MenuItem();
   this.menuItem6 = new System.Windows.Forms.MenuItem();
   this.menuItem7 = new System.Windows.Forms.MenuItem();
   this.button1 = new System.Windows.Forms.Button();
   this.xe = new System.Windows.Forms.TextBox();
   this.ye = new System.Windows.Forms.TextBox();
   this.xe2 = new System.Windows.Forms.TextBox();
   this.ye2 = new System.Windows.Forms.TextBox();
   this.comboBox1 = new System.Windows.Forms.ComboBox();
   this.label1 = new System.Windows.Forms.Label();
   this.label2 = new System.Windows.Forms.Label();
   this.label3 = new System.Windows.Forms.Label();
   this.label4 = new System.Windows.Forms.Label();
   this.pictureBox1 = new System.Windows.Forms.PictureBox();
   this.pictureBox2 = new System.Windows.Forms.PictureBox();
   this.colorDialog1 = new System.Windows.Forms.ColorDialog();
   this.pictureBox3 = new System.Windows.Forms.PictureBox();
   this.button2 = new System.Windows.Forms.Button();
   this.button3 = new System.Windows.Forms.Button();
   this.SuspendLayout();
   // 
   // mainMenu1
   // 
   this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                       this.menuItem1});
   // 
   // menuItem1
   // 
   this.menuItem1.Index = 0;
   this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                       this.menuItem2,
                       this.menuItem3,
                       this.menuItem4,
                       this.menuItem5,
                       this.menuItem6,
                       this.menuItem7});
   this.menuItem1.Text = "Drawings";
   // 
   // menuItem2
   // 
   this.menuItem2.Index = 0;
   this.menuItem2.Text = "Dot";
   this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);
   // 
   // menuItem3
   // 
   this.menuItem3.Index = 1;
   this.menuItem3.Text = "Line";
   this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click);
   // 
   // menuItem4
   // 
   this.menuItem4.Index = 2;
   this.menuItem4.Text = "Square";
   this.menuItem4.Click += new System.EventHandler(this.menuItem4_Click);
   // 
   // menuItem5
   // 
   this.menuItem5.Index = 3;
   this.menuItem5.Text = "Rectangle";
   this.menuItem5.Click += new System.EventHandler(this.menuItem5_Click);
   // 
   // menuItem6
   // 
   this.menuItem6.Index = 4;
   this.menuItem6.Text = "Elipse";
   this.menuItem6.Click += new System.EventHandler(this.menuItem6_Click);
   // 
   // menuItem7
   // 
   this.menuItem7.Index = 5;
   this.menuItem7.Text = "Text";
   this.menuItem7.Click += new System.EventHandler(this.menuItem7_Click);
   // 
   // button1
   // 
   this.button1.Location = new System.Drawing.Point(656, 24);
   this.button1.Name = "button1";
   this.button1.Size = new System.Drawing.Size(56, 24);
   this.button1.TabIndex = 1;
   this.button1.Text = "Draw";
   this.button1.Click += new System.EventHandler(this.button1_Click);
   // 
   // xe
   // 
   this.xe.Location = new System.Drawing.Point(256, 8);
   this.xe.Name = "xe";
   this.xe.Size = new System.Drawing.Size(80, 20);
   this.xe.TabIndex = 2;
   this.xe.Text = "80";
   // 
   // ye
   // 
   this.ye.Location = new System.Drawing.Point(256, 32);
   this.ye.Name = "ye";
   this.ye.Size = new System.Drawing.Size(80, 20);
   this.ye.TabIndex = 2;
   this.ye.Text = "80";
   this.ye.TextChanged += new System.EventHandler(this.ye_TextChanged);
   // 
   // xe2
   // 
   this.xe2.Location = new System.Drawing.Point(368, 8);
   this.xe2.Name = "xe2";
   this.xe2.Size = new System.Drawing.Size(80, 20);
   this.xe2.TabIndex = 2;
   this.xe2.Text = "100";
   // 
   // ye2
   // 
   this.ye2.Location = new System.Drawing.Point(368, 32);
   this.ye2.Name = "ye2";
   this.ye2.Size = new System.Drawing.Size(80, 20);
   this.ye2.TabIndex = 2;
   this.ye2.Text = "100";
   this.ye2.TextChanged += new System.EventHandler(this.textBox4_TextChanged);
   // 
   // comboBox1
   // 
   this.comboBox1.Items.AddRange(new object[] {
                 "Dot",
                 "Line",
                 "Square",
                 "Patrulater",
                 "Paralelogram",
                 "Circle",
                 "Elipse",
                 "Text",
                 "Rectangle"});
   this.comboBox1.Location = new System.Drawing.Point(8, 16);
   this.comboBox1.Name = "comboBox1";
   this.comboBox1.Size = new System.Drawing.Size(112, 21);
   this.comboBox1.TabIndex = 3;
   this.comboBox1.Text = "Selecteza";
   this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
   // 
   // label1
   // 
   this.label1.Location = new System.Drawing.Point(232, 8);
   this.label1.Name = "label1";
   this.label1.Size = new System.Drawing.Size(24, 16);
   this.label1.TabIndex = 4;
   this.label1.Text = "X1:";
   // 
   // label2
   // 
   this.label2.Location = new System.Drawing.Point(232, 32);
   this.label2.Name = "label2";
   this.label2.Size = new System.Drawing.Size(24, 16);
   this.label2.TabIndex = 4;
   this.label2.Text = "Y1:";
   this.label2.Click += new System.EventHandler(this.label2_Click);
   // 
   // label3
   // 
   this.label3.Location = new System.Drawing.Point(344, 8);
   this.label3.Name = "label3";
   this.label3.Size = new System.Drawing.Size(24, 16);
   this.label3.TabIndex = 4;
   this.label3.Text = "X2:";
   // 
   // label4
   // 
   this.label4.Location = new System.Drawing.Point(344, 32);
   this.label4.Name = "label4";
   this.label4.Size = new System.Drawing.Size(24, 16);
   this.label4.TabIndex = 4;
   this.label4.Text = "Y2:";
   this.label4.Click += new System.EventHandler(this.label4_Click);
   // 
   // pictureBox1
   // 
   this.pictureBox1.BackColor = System.Drawing.Color.Red;
   this.pictureBox1.Location = new System.Drawing.Point(456, 8);
   this.pictureBox1.Name = "pictureBox1";
   this.pictureBox1.Size = new System.Drawing.Size(24, 24);
   this.pictureBox1.TabIndex = 5;
   this.pictureBox1.TabStop = false;
   this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
   // 
   // pictureBox2
   // 
   this.pictureBox2.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(192)));
   this.pictureBox2.Location = new System.Drawing.Point(480, 32);
   this.pictureBox2.Name = "pictureBox2";
   this.pictureBox2.Size = new System.Drawing.Size(16, 16);
   this.pictureBox2.TabIndex = 5;
   this.pictureBox2.TabStop = false;
   this.pictureBox2.Click += new System.EventHandler(this.pictureBox2_Click);
   // 
   // pictureBox3
   // 
   this.pictureBox3.BackColor = System.Drawing.SystemColors.ControlText;
   this.pictureBox3.Location = new System.Drawing.Point(8, 56);
   this.pictureBox3.Name = "pictureBox3";
   this.pictureBox3.Size = new System.Drawing.Size(776, 1);
   this.pictureBox3.TabIndex = 6;
   this.pictureBox3.TabStop = false;
   // 
   // button2
   // 
   this.button2.Location = new System.Drawing.Point(184, 8);
   this.button2.Name = "button2";
   this.button2.Size = new System.Drawing.Size(32, 16);
   this.button2.TabIndex = 7;
   this.button2.Text = "-->";
   this.button2.Click += new System.EventHandler(this.button2_Click);
   // 
   // button3
   // 
   this.button3.Location = new System.Drawing.Point(184, 24);
   this.button3.Name = "button3";
   this.button3.Size = new System.Drawing.Size(32, 16);
   this.button3.TabIndex = 7;
   this.button3.Text = "<--";
   this.button3.Click += new System.EventHandler(this.button3_Click);
   // 
   // Form1
   // 
   this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
   this.BackColor = System.Drawing.SystemColors.ActiveCaptionText;
   this.ClientSize = new System.Drawing.Size(792, 553);
   this.Controls.Add(this.button2);
   this.Controls.Add(this.pictureBox3);
   this.Controls.Add(this.pictureBox1);
   this.Controls.Add(this.label1);
   this.Controls.Add(this.comboBox1);
   this.Controls.Add(this.xe);
   this.Controls.Add(this.button1);
   this.Controls.Add(this.ye);
   this.Controls.Add(this.xe2);
   this.Controls.Add(this.ye2);
   this.Controls.Add(this.label2);
   this.Controls.Add(this.label3);
   this.Controls.Add(this.label4);
   this.Controls.Add(this.pictureBox2);
   this.Controls.Add(this.button3);
   this.Menu = this.mainMenu1;
   this.Name = "Form1";
   this.Text = "Drawings";
   this.Load += new System.EventHandler(this.Form1_Load);
   this.ResumeLayout(false);

  }
  #endregion

  /// <summary>
  /// The main entry point for the application.
  /// </summary>
  [STAThread]
  static void Main() 
  {
   Application.Run(new Form1());
  }


  //initial variables
  Color frontcolor;
  Color backcolor;
int eX,eY,eX2,eY2;

  //

  
  private void menuItem2_Click(object sender, System.EventArgs e)
  {
   Pen myPen = new Pen(System.Drawing.Color.Red, 5);
   myPen.DashStyle = System.Drawing.Drawing2D.DashStyle.DashDotDot;

   myPen.Color = System.Drawing.Color.RoyalBlue;

   myPen.Width = 3;
   
  }

  private void Form1_MouseMove(object sender, MouseEventArgs e) 
  {
   this.Text = "L" + e.X + ", " + e.Y + ".";
   this.Text += "G " + Cursor.Position.X + ", " + Cursor.Position.Y + ".";
   System.Drawing.Graphics graphicsObj;
   graphicsObj = this.CreateGraphics();
   /* Point mouseDownLocation = new Point(e.X, e.Y);
   
 
    ;

    Pen myPen = new Pen(System.Drawing.Color.Red, 5);

    graphicsObj.DrawLine(myPen, e.X, e.Y, 200, 210);
    

   //////////////////////////////////////////////////////////////////////////////////
   Pen myPen = new Pen(System.Drawing.Color.Red, 50);
   myPen.DashStyle = System.Drawing.Drawing2D.DashStyle.DashDotDot;
   myPen.Color = System.Drawing.Color.RoyalBlue;
   myPen.Width = 3;
   graphicsObj.DrawLine(myPen, e.X, e.Y, e.X-5, e.Y-5);
   graphicsObj.DrawLine(myPen, e.X-5, e.Y-5, e.X+5, e.Y+5);
   */
  }
  private void Form1_MouseDown(object sender, MouseEventArgs e)
  {
   this.Text = "L" + e.X + ", " + e.Y + ".";
   this.Text += "G " + Cursor.Position.X + ", " + Cursor.Position.Y + ".";
   System.Drawing.Graphics graphicsObj;
   graphicsObj = this.CreateGraphics();

   /* 
    Point mouseDownLocation = new Point(e.X, e.Y);
    Pen myPen = new Pen(System.Drawing.Color.Red, 5);
    graphicsObj.DrawLine(myPen, e.X, e.Y, 200, 210);
   
  
    Pen myPen = new Pen(System.Drawing.Color.Red, 50);
    myPen.DashStyle = System.Drawing.Drawing2D.DashStyle.DashDotDot;
    myPen.Color = System.Drawing.Color.RoyalBlue;
    myPen.Width = 3;
    graphicsObj.DrawLine(myPen, e.X, e.Y, e.X-5, e.Y-5);
    graphicsObj.DrawLine(myPen, e.X-5, e.Y-5, e.X+5, e.Y+5);
   
   */
   this.xe.Text = Convert.ToString(e.X);
   this.ye.Text = Convert.ToString(e.Y);

   DrawAPoint();
  }

  private void Form1_Load(object sender, PaintEventArgs e)
  {
   
  }

  private void pictureBox2_Click(object sender, System.EventArgs e)
  {
   this.colorDialog1.ShowDialog();
   backcolor = this.colorDialog1.Color;
   this.pictureBox2.BackColor = backcolor;

  }

  private void pictureBox1_Click(object sender, System.EventArgs e)
  {
   this.colorDialog1.ShowDialog();
   frontcolor = this.colorDialog1.Color;
   this.pictureBox1.BackColor = frontcolor;

  }

  private void label4_Click(object sender, System.EventArgs e)
  {
  
  }

  private void ye_TextChanged(object sender, System.EventArgs e)
  {
  
  }

  private void label2_Click(object sender, System.EventArgs e)
  {
  
  }

  private void button1_Click(object sender, System.EventArgs e)
  {
   /**
   0 Dot
   1 Line
   2 Square
   3 Patrulater
   4 Paralelogram
   5 Circle
   6 Elipse
   7 Text
   8 Rectangle
    * */
   
   eX=int.Parse(this.xe.Text);
   eY=int.Parse(this.ye.Text);
   eX2=int.Parse(this.xe2.Text);
   eY2=int.Parse(this.ye2.Text);

   System.Drawing.Graphics graphicsObj;
   graphicsObj = this.CreateGraphics();


   if(this.comboBox1.SelectedIndex==0)
   {
    
    Pen myPen = new Pen(frontcolor, 1);
    
    myPen.Color = frontcolor;
    myPen.Width = 1;
    
    graphicsObj.DrawLine(myPen, eX, eY, eX+5, eY+5);
    graphicsObj.DrawLine(myPen, eX+5, eY, eX, eY+5);

   }
   if(this.comboBox1.SelectedIndex==1)
   {
    

    Pen myPen = new Pen(frontcolor, 1);

    graphicsObj.DrawLine(myPen, eX, eY, eX2, eY2);

   }

   if(this.comboBox1.SelectedIndex==2)
   {
    
    Pen myPen = new Pen(frontcolor, 1);

    Rectangle myRectangle = new Rectangle(eX, eY, eX2, eY2);

    graphicsObj.DrawRectangle(myPen, myRectangle);
   }
   if(this.comboBox1.SelectedIndex==3)
   {
    
    Pen myPen = new Pen(frontcolor, 1);

    Rectangle myRectangle = new Rectangle(eX, eY, eX2, eY2);

    graphicsObj.DrawRectangle(myPen, myRectangle);
   }


   if(this.comboBox1.SelectedIndex==4)
   {
    
    Pen myPen = new Pen(frontcolor, 1);

    Rectangle myRectangle = new Rectangle(eX, eY, eX2, eY2);

    graphicsObj.DrawRectangle(myPen, myRectangle);
   }

   if(this.comboBox1.SelectedIndex==5)
   {
   
    Pen myPen = new Pen(frontcolor, 1);
    Rectangle myRectangle = new Rectangle(eX, eY, eX2, eY2);
    graphicsObj.DrawEllipse(myPen, myRectangle); 
   }

   if(this.comboBox1.SelectedIndex==6)
   {
    
    Pen myPen = new Pen(frontcolor, 1);
    Rectangle myRectangle = new Rectangle(eX, eY, eX2, eY2);
    graphicsObj.DrawEllipse(myPen, myRectangle); 
   }

   if(this.comboBox1.SelectedIndex==7)
   {
   
    Font myFont = new System.Drawing.Font("Helvetica", 40, FontStyle.Italic);
    Brush myBrush = new SolidBrush(frontcolor);
    graphicsObj.DrawString("Hello C#", myFont, myBrush, 30, 30);
   }
   if(this.comboBox1.SelectedIndex==8)
   {
    
    Pen myPen = new Pen(frontcolor, 1);

    Rectangle myRectangle = new Rectangle(eX, eY, eX2, eY2);

    graphicsObj.DrawRectangle(myPen, myRectangle);
   }
   //endofmethode
  }

  private void comboBox1_SelectedIndexChanged(object sender, System.EventArgs e)
  {
   this.Text+=Convert.ToString(this.comboBox1.SelectedIndex);
  }

  
  private void textBox4_TextChanged(object sender, System.EventArgs e)
  {
  
  }

  private void menuItem3_Click(object sender, System.EventArgs e)
  {
   System.Drawing.Graphics graphicsObj;

   graphicsObj = this.CreateGraphics();

   Pen myPen = new Pen(System.Drawing.Color.Red, 5);

   graphicsObj.DrawLine(myPen, 20, 20, 200, 210);
  }

  private void menuItem4_Click(object sender, System.EventArgs e)
  {
   //square

   System.Drawing.Graphics graphicsObj;

   graphicsObj = this.CreateGraphics();
   Pen myPen = new Pen(System.Drawing.Color.Red, 5);

   Rectangle myRectangle = new Rectangle(20, 20, 250, 200);

   graphicsObj.DrawRectangle(myPen, myRectangle);
  }

  private void menuItem5_Click(object sender, System.EventArgs e)
  {
   //rectangle
  }

  private void menuItem6_Click(object sender, System.EventArgs e)
  {
   System.Drawing.Graphics graphicsObj;

   graphicsObj = this.CreateGraphics();
   Pen myPen = new Pen(System.Drawing.Color.Green, 5);
   Rectangle myRectangle = new Rectangle(20, 20, 250, 200);
   graphicsObj.DrawEllipse(myPen, myRectangle);
  }

  private void menuItem7_Click(object sender, System.EventArgs e)
  {
   System.Drawing.Graphics graphicsObj;
   graphicsObj = this.CreateGraphics();
   Font myFont = new System.Drawing.Font("Helvetica", 40, FontStyle.Italic);
   Brush myBrush = new SolidBrush(System.Drawing.Color.Red);
   graphicsObj.DrawString("Hello C#", myFont, myBrush, 30, 30);
  }

  private void Form1_Load(object sender, System.EventArgs e)
  {
   frontcolor = System.Drawing.Color.Red;
   backcolor = System.Drawing.Color.Blue;
   this.MouseMove += new MouseEventHandler(Form1_MouseMove);
   this.MouseDown += new MouseEventHandler(Form1_MouseDown);
  
  }
  private void DrawAPoint()
  {
   System.Drawing.Graphics graphicsObj;
   graphicsObj = this.CreateGraphics();
   eX=int.Parse(this.xe.Text);
   eY=int.Parse(this.ye.Text);
   eX2=int.Parse(this.xe2.Text);
   eY2=int.Parse(this.ye2.Text);

   
    
   Pen myPen = new Pen(frontcolor, 1);
    
   myPen.Color = frontcolor;
   myPen.Width = 1;
    
   graphicsObj.DrawLine(myPen, eX, eY, eX+5, eY+5);
   graphicsObj.DrawLine(myPen, eX+5, eY, eX, eY+5);
  
  }

  private void button2_Click(object sender, System.EventArgs e)
  {
   this.xe2.Text=this.xe.Text;
   this.ye2.Text=this.ye.Text;
   
  }

  private void button3_Click(object sender, System.EventArgs e)
  {
   this.xe.Text=this.xe2.Text;
   this.ye.Text=this.ye2.Text;
  }
 }
}

Comentarii

Postări populare de pe acest blog

WINDOWS 10 COMPUTER FREEZING PROBLEM SOLVED

good news : a BIOS UPDATE can resolve the problem but just for a Windows 7 on 64 bits o.s. and the system is not stable all the time. even after  bios update the system can freeze.
new info : u can try to low the screen brightness and see if this error appear so often after 
news: last info !!! maybe a virus. scann our system now with an antivirus i generate this error using other device ( a tablet pc) connected in the same network and the laptop i have this problem just freeze  http://thehackernews.com/2013/10/backdoor-found-in-chinese-tenda.html

news : if u use a tenda router this make couse all this problems



what i discover so far :
1.the electric company have many failure and affect the main ISP router/switch for building  also the router/switch installed by the ISP may be affected by overheating and will crash after a long utilisation on heat conditions 2.the router/switch of ISP affect any router of the user between this router and pc/laptop of client 3.the router and any other device of t…

program principal cpp

#include "clasa.h" #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <string.h> #define DELAY 9000000 void delay() { for(long i=0;i<DELAY;i++); } //constructor cu initializare de la tastatura BigInt::BigInt() {char x; signed char t[400]; int i; printf("\nNumarul cu semn "); do s=getche(); while((s!='+')&&(s!='-')); n=0; do {x=getche(); t[n]=x-'0'; n++; } while((x>='0')&&(x<='9')); n--; for(i=0;i<n;i++) nr[i]=t[n-i-1]; } //constructor cu initializare prin parametri BigInt::BigInt(char semn,signed char numar[],int dim) {int i; s=semn; n=dim; for(i=0;i<n;i++) nr[i]=numar[n-i-1]; } //transform un int negativ in pozitiv int BigInt::Pozitiv(int x) {int a,vb; a=0; vb=0; while(vb==0) if((x+a)==0) vb=1; else a=a+1; x=a; return x; } //constructor dintr-un nr int obisnuit BigInt::BigInt(int x) {int i; if(x>=0) s='+'…

o aplicatie php localitati romania

//APLICATIA SE REFERA LA BAZA DE DATE SIRUTA

//dragtable.js


/* dragtable v1.0 June 26, 2008 Dan Vanderkam, http://danvk.org/dragtable/ http://code.google.com/p/dragtable/ \Bsortabledraggable\B Instructions: - Download this file - Add <script src="dragtable.js"></script> to your HTML. - Add class="draggable" to any table you might like to reorder. - Drag the headers around to reorder them. This is code was based on: - Stuart Langridge's SortTable (kryogenix.org/code/browser/sorttable) - Mike Hall's draggable class (http://www.brainjar.com/dhtml/drag/) - A discussion of permuting table columns on comp.lang.javascript Licensed under the MIT license. */ // Here's the notice from Mike Hall's draggable script: //***************************************************************************** // Do not remove this notice. // // Copyright 2001 by Mike Hall. // See http…