Beispiel #1
0
        private void InitializeCustomComponents()
        {
            this.SuspendLayout();

            // hexTextBox
            hexTextBox             = new HexTextBox();
            hexTextBox.Location    = new Point(376, 231);
            hexTextBox.Size        = new Size(55, 20);
            hexTextBox.BorderStyle = BorderStyle.FixedSingle;
            hexTextBox.ReadOnly    = false;
            hexTextBox.KeyUp      += new KeyEventHandler(hexTextBox_KeyUp);
            hexTextBox.KeyDown    += new KeyEventHandler(hexTextBox_KeyDown);
            this.Controls.Add(hexTextBox);

            // colorFieldPanel
            colorFieldPanel                = new ColorFieldPanel();
            colorFieldPanel.BackColor      = System.Drawing.SystemColors.Desktop;
            colorFieldPanel.Location       = new System.Drawing.Point(16, 8);
            colorFieldPanel.Name           = "colorFieldPanel";
            colorFieldPanel.Size           = new System.Drawing.Size(256, 256);
            colorFieldPanel.TabIndex       = 52;
            colorFieldPanel.ColorSelected += new ColorFieldPanel.ColorSelectedHandler(colorFieldPanel_ColorSelected);
            Controls.Add(colorFieldPanel);

            // colorSwatchPanel
            colorSwatchPanel                      = new ColorSwatchPanel();
            colorSwatchPanel.Location             = new System.Drawing.Point(464, 4);
            colorSwatchPanel.Name                 = "colorSwatchPanel";
            colorSwatchPanel.Size                 = new System.Drawing.Size(96, 264);
            colorSwatchPanel.TabIndex             = 53;
            colorSwatchPanel.ColorSwatchSelected += new ColorSwatchSelectedHandler(colorSwatchPanel_ColorSwatchSelected);
            Controls.Add(colorSwatchPanel);

            // rgbColorSpace
            rgbColorSpace = new RgbColorSpace();
            rgbColorSpace.DisplayRadioButtons = true;
            rgbColorSpace.Location            = new System.Drawing.Point(336, 138);
            rgbColorSpace.Name     = "rgbColorSpace";
            rgbColorSpace.ReadOnly = false;
            rgbColorSpace.Size     = new System.Drawing.Size(112, 96);
            rgbColorSpace.TabIndex = 48;
            rgbColorSpace.ComponentValueChanged    += new ColorSpaceEventHandler(ColorSpaceComponentValueChanged);
            rgbColorSpace.SelectedComponentChanged += new ColorSpaceEventHandler(SelectedColorSpaceComponentChanged);
            Controls.Add(rgbColorSpace);

            // hsbColorSpace
            hsbColorSpace = new HsbColorSpace();
            hsbColorSpace.DisplayRadioButtons = true;
            hsbColorSpace.Location            = new System.Drawing.Point(336, 58);
            hsbColorSpace.Name     = "hsbColorSpace";
            hsbColorSpace.ReadOnly = false;
            hsbColorSpace.Size     = new System.Drawing.Size(112, 96);
            hsbColorSpace.TabIndex = 47;
            hsbColorSpace.ComponentValueChanged    += new ColorSpaceEventHandler(ColorSpaceComponentValueChanged);
            hsbColorSpace.SelectedComponentChanged += new ColorSpaceEventHandler(SelectedColorSpaceComponentChanged);
            hsbColorSpace.SetDefaultSelection();
            Controls.Add(hsbColorSpace);

            this.ResumeLayout(false);
        }
Beispiel #2
0
        private void InitializeCustomComponents()
        {
            this.SuspendLayout();

            // hexTextBox
            hexTextBox = new HexTextBox();
            hexTextBox.Location = new Point( 376, 231 );
            hexTextBox.Size = new Size( 55, 20 );
            hexTextBox.BorderStyle = BorderStyle.FixedSingle;
            hexTextBox.ReadOnly = false;
            hexTextBox.KeyUp += new KeyEventHandler(hexTextBox_KeyUp);
            hexTextBox.KeyDown += new KeyEventHandler(hexTextBox_KeyDown);
            this.Controls.Add( hexTextBox );

            // colorFieldPanel
            colorFieldPanel = new ColorFieldPanel();
            colorFieldPanel.BackColor = System.Drawing.SystemColors.Desktop;
            colorFieldPanel.Location = new System.Drawing.Point(16, 8);
            colorFieldPanel.Name = "colorFieldPanel";
            colorFieldPanel.Size = new System.Drawing.Size(256, 256);
            colorFieldPanel.TabIndex = 52;
            colorFieldPanel.ColorSelected += new ColorFieldPanel.ColorSelectedHandler(colorFieldPanel_ColorSelected);
            Controls.Add( colorFieldPanel );

            // colorSwatchPanel
            colorSwatchPanel = new ColorSwatchPanel();
            colorSwatchPanel.Location = new System.Drawing.Point(464, 4);
            colorSwatchPanel.Name = "colorSwatchPanel";
            colorSwatchPanel.Size = new System.Drawing.Size(96, 264);
            colorSwatchPanel.TabIndex = 53;
            colorSwatchPanel.ColorSwatchSelected += new ColorSwatchSelectedHandler(colorSwatchPanel_ColorSwatchSelected);
            Controls.Add( colorSwatchPanel );

            // rgbColorSpace
            rgbColorSpace = new RgbColorSpace();
            rgbColorSpace.DisplayRadioButtons = true;
            rgbColorSpace.Location = new System.Drawing.Point(336, 138);
            rgbColorSpace.Name = "rgbColorSpace";
            rgbColorSpace.ReadOnly = false;
            rgbColorSpace.Size = new System.Drawing.Size(112, 96);
            rgbColorSpace.TabIndex = 48;
            rgbColorSpace.ComponentValueChanged += new ColorSpaceEventHandler(ColorSpaceComponentValueChanged);
            rgbColorSpace.SelectedComponentChanged += new ColorSpaceEventHandler(SelectedColorSpaceComponentChanged);
            Controls.Add(rgbColorSpace);

            // hsbColorSpace
            hsbColorSpace = new HsbColorSpace();
            hsbColorSpace.DisplayRadioButtons = true;
            hsbColorSpace.Location = new System.Drawing.Point(336, 58);
            hsbColorSpace.Name = "hsbColorSpace";
            hsbColorSpace.ReadOnly = false;
            hsbColorSpace.Size = new System.Drawing.Size(112, 96);
            hsbColorSpace.TabIndex = 47;
            hsbColorSpace.ComponentValueChanged += new ColorSpaceEventHandler(ColorSpaceComponentValueChanged);
            hsbColorSpace.SelectedComponentChanged += new ColorSpaceEventHandler(SelectedColorSpaceComponentChanged);
            hsbColorSpace.SetDefaultSelection();
            Controls.Add(hsbColorSpace);

            this.ResumeLayout( false );
        }