예제 #1
0
 void InitializeComponent()
 {
     this.tb_Val   = new creaturevisualizer.TextboxRestrictive();
     this.la_Units = new System.Windows.Forms.Label();
     this.rb_Co    = new System.Windows.Forms.RadioButton();
     this.SuspendLayout();
     //
     // tb_Val
     //
     this.tb_Val.BackColor    = System.Drawing.Color.White;
     this.tb_Val.BorderStyle  = System.Windows.Forms.BorderStyle.FixedSingle;
     this.tb_Val.Location     = new System.Drawing.Point(30, 0);
     this.tb_Val.Margin       = new System.Windows.Forms.Padding(0);
     this.tb_Val.MaxLength    = 3;
     this.tb_Val.Name         = "tb_Val";
     this.tb_Val.Restrict     = creaturevisualizer.TextboxRestrictive.Type.Byte;
     this.tb_Val.Size         = new System.Drawing.Size(25, 20);
     this.tb_Val.TabIndex     = 1;
     this.tb_Val.TextAlign    = System.Windows.Forms.HorizontalAlignment.Center;
     this.tb_Val.TextChanged += new System.EventHandler(this.textchanged_tb);
     this.tb_Val.KeyUp       += new System.Windows.Forms.KeyEventHandler(this.keyup_tb);
     //
     // la_Units
     //
     this.la_Units.Location  = new System.Drawing.Point(60, 0);
     this.la_Units.Margin    = new System.Windows.Forms.Padding(0);
     this.la_Units.Name      = "la_Units";
     this.la_Units.Size      = new System.Drawing.Size(15, 20);
     this.la_Units.TabIndex  = 2;
     this.la_Units.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // rb_Co
     //
     this.rb_Co.AutoCheck = false;
     this.rb_Co.Location  = new System.Drawing.Point(0, 0);
     this.rb_Co.Margin    = new System.Windows.Forms.Padding(0);
     this.rb_Co.Name      = "rb_Co";
     this.rb_Co.Size      = new System.Drawing.Size(30, 20);
     this.rb_Co.TabIndex  = 0;
     this.rb_Co.Click    += new System.EventHandler(this.click_rb);
     //
     // ColorSpaceControlCisco
     //
     this.Controls.Add(this.rb_Co);
     this.Controls.Add(this.tb_Val);
     this.Controls.Add(this.la_Units);
     this.Font   = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Margin = new System.Windows.Forms.Padding(0);
     this.Name   = "ColorSpaceControlCisco";
     this.Size   = new System.Drawing.Size(75, 20);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #2
0
 void InitializeComponent()
 {
     this.colorfield  = new creaturevisualizer.ColorField();
     this.colortop    = new creaturevisualizer.ColorBox();
     this.colorbot    = new creaturevisualizer.ColorBox();
     this.colorslider = new creaturevisualizer.ColorSlider();
     this.swatches    = new creaturevisualizer.SwatchControl();
     this.cscRgb      = new creaturevisualizer.ColorSpaceControlRGB();
     this.cscHsl      = new creaturevisualizer.ColorSpaceControlHSL();
     this.tb_Hecate   = new creaturevisualizer.TextboxRestrictive();
     this.tb_Alpha    = new creaturevisualizer.TextboxRestrictive();
     this.la_Hecate   = new System.Windows.Forms.Label();
     this.la_Alpha    = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // colorfield
     //
     this.colorfield.Font           = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.colorfield.Location       = new System.Drawing.Point(5, 8);
     this.colorfield.Margin         = new System.Windows.Forms.Padding(0);
     this.colorfield.Name           = "colorfield";
     this.colorfield.Size           = new System.Drawing.Size(256, 256);
     this.colorfield.TabIndex       = 0;
     this.colorfield.TabStop        = false;
     this.colorfield.PointSelected += new creaturevisualizer.PointSelectedEvent(this.pointselected);
     //
     // colortop
     //
     this.colortop.Font     = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.colortop.Location = new System.Drawing.Point(305, 8);
     this.colortop.Margin   = new System.Windows.Forms.Padding(0);
     this.colortop.Name     = "colortop";
     this.colortop.Size     = new System.Drawing.Size(80, 30);
     this.colortop.TabIndex = 2;
     this.colortop.TabStop  = false;
     this.colortop.MouseUp += new System.Windows.Forms.MouseEventHandler(this.mouseup_colorbo);
     //
     // colorbot
     //
     this.colorbot.Font     = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.colorbot.Location = new System.Drawing.Point(305, 38);
     this.colorbot.Margin   = new System.Windows.Forms.Padding(0);
     this.colorbot.Name     = "colorbot";
     this.colorbot.Size     = new System.Drawing.Size(80, 30);
     this.colorbot.TabIndex = 3;
     this.colorbot.TabStop  = false;
     this.colorbot.MouseUp += new System.Windows.Forms.MouseEventHandler(this.mouseup_colorbo);
     //
     // colorslider
     //
     this.colorslider.Font           = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.colorslider.Location       = new System.Drawing.Point(265, 3);
     this.colorslider.Margin         = new System.Windows.Forms.Padding(0);
     this.colorslider.Name           = "colorslider";
     this.colorslider.Size           = new System.Drawing.Size(36, 267);
     this.colorslider.TabIndex       = 1;
     this.colorslider.TabStop        = false;
     this.colorslider.SliderChanged += new creaturevisualizer.SliderChangedEvent(this.sliderchanged);
     //
     // swatches
     //
     this.swatches.Font            = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.swatches.Location        = new System.Drawing.Point(395, 8);
     this.swatches.Margin          = new System.Windows.Forms.Padding(0);
     this.swatches.Name            = "swatches";
     this.swatches.Size            = new System.Drawing.Size(93, 309);
     this.swatches.TabIndex        = 10;
     this.swatches.TabStop         = false;
     this.swatches.SwatchSelected += new creaturevisualizer.SwatchSelectedEvent(this.swatchselected);
     //
     // cscRgb
     //
     this.cscRgb.Font                  = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cscRgb.Location              = new System.Drawing.Point(310, 150);
     this.cscRgb.Margin                = new System.Windows.Forms.Padding(0);
     this.cscRgb.Name                  = "cscRgb";
     this.cscRgb.Size                  = new System.Drawing.Size(75, 60);
     this.cscRgb.TabIndex              = 5;
     this.cscRgb.CiscoSelected_hi     += new creaturevisualizer.ColorSpaceEvent(this.ciscoselected);
     this.cscRgb.CiscoValueChanged_hi += new creaturevisualizer.ColorSpaceEvent(this.ciscovaluechanged);
     //
     // cscHsl
     //
     this.cscHsl.Font                  = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cscHsl.Location              = new System.Drawing.Point(310, 80);
     this.cscHsl.Margin                = new System.Windows.Forms.Padding(0);
     this.cscHsl.Name                  = "cscHsl";
     this.cscHsl.Size                  = new System.Drawing.Size(75, 60);
     this.cscHsl.TabIndex              = 4;
     this.cscHsl.CiscoSelected_hi     += new creaturevisualizer.ColorSpaceEvent(this.ciscoselected);
     this.cscHsl.CiscoValueChanged_hi += new creaturevisualizer.ColorSpaceEvent(this.ciscovaluechanged);
     //
     // tb_Hecate
     //
     this.tb_Hecate.BackColor    = System.Drawing.Color.White;
     this.tb_Hecate.BorderStyle  = System.Windows.Forms.BorderStyle.FixedSingle;
     this.tb_Hecate.Location     = new System.Drawing.Point(344, 220);
     this.tb_Hecate.Margin       = new System.Windows.Forms.Padding(0);
     this.tb_Hecate.MaxLength    = 6;
     this.tb_Hecate.Name         = "tb_Hecate";
     this.tb_Hecate.Restrict     = creaturevisualizer.TextboxRestrictive.Type.Hecate;
     this.tb_Hecate.Size         = new System.Drawing.Size(45, 20);
     this.tb_Hecate.TabIndex     = 7;
     this.tb_Hecate.TextAlign    = System.Windows.Forms.HorizontalAlignment.Center;
     this.tb_Hecate.TextChanged += new System.EventHandler(this.textchanged_hecate);
     //
     // tb_Alpha
     //
     this.tb_Alpha.BackColor    = System.Drawing.Color.White;
     this.tb_Alpha.BorderStyle  = System.Windows.Forms.BorderStyle.FixedSingle;
     this.tb_Alpha.Location     = new System.Drawing.Point(344, 245);
     this.tb_Alpha.Margin       = new System.Windows.Forms.Padding(0);
     this.tb_Alpha.MaxLength    = 3;
     this.tb_Alpha.Name         = "tb_Alpha";
     this.tb_Alpha.Restrict     = creaturevisualizer.TextboxRestrictive.Type.Byte;
     this.tb_Alpha.Size         = new System.Drawing.Size(45, 20);
     this.tb_Alpha.TabIndex     = 9;
     this.tb_Alpha.TextAlign    = System.Windows.Forms.HorizontalAlignment.Center;
     this.tb_Alpha.TextChanged += new System.EventHandler(this.textchanged_alpha);
     //
     // la_Hecate
     //
     this.la_Hecate.Location  = new System.Drawing.Point(305, 220);
     this.la_Hecate.Margin    = new System.Windows.Forms.Padding(0);
     this.la_Hecate.Name      = "la_Hecate";
     this.la_Hecate.Size      = new System.Drawing.Size(39, 20);
     this.la_Hecate.TabIndex  = 6;
     this.la_Hecate.Text      = "hex";
     this.la_Hecate.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // la_Alpha
     //
     this.la_Alpha.Location  = new System.Drawing.Point(305, 245);
     this.la_Alpha.Margin    = new System.Windows.Forms.Padding(0);
     this.la_Alpha.Name      = "la_Alpha";
     this.la_Alpha.Size      = new System.Drawing.Size(39, 20);
     this.la_Alpha.TabIndex  = 8;
     this.la_Alpha.Text      = "alpha";
     this.la_Alpha.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // ColorControl
     //
     this.Controls.Add(this.colorfield);
     this.Controls.Add(this.colorslider);
     this.Controls.Add(this.colortop);
     this.Controls.Add(this.colorbot);
     this.Controls.Add(this.cscHsl);
     this.Controls.Add(this.cscRgb);
     this.Controls.Add(this.la_Hecate);
     this.Controls.Add(this.tb_Hecate);
     this.Controls.Add(this.la_Alpha);
     this.Controls.Add(this.tb_Alpha);
     this.Controls.Add(this.swatches);
     this.Font   = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Margin = new System.Windows.Forms.Padding(0);
     this.Name   = "ColorControl";
     this.Size   = new System.Drawing.Size(490, 317);
     this.ResumeLayout(false);
     this.PerformLayout();
 }