Ejemplo n.º 1
0
 private void InitializeComponent()
 {
     this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel();
     this.kbtnOK        = new Krypton.Toolkit.KryptonButton();
     this.kbtnCancel    = new Krypton.Toolkit.KryptonButton();
     this.kryptonPanel2 = new Krypton.Toolkit.KryptonPanel();
     this.ktxtPrompt    = new Krypton.Toolkit.KryptonTextBox();
     this.kwlMessage    = new Krypton.Toolkit.KryptonWrapLabel();
     this.panel1        = new System.Windows.Forms.Panel();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
     this.kryptonPanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
     this.kryptonPanel2.SuspendLayout();
     this.SuspendLayout();
     //
     // kryptonPanel1
     //
     this.kryptonPanel1.Controls.Add(this.kbtnOK);
     this.kryptonPanel1.Controls.Add(this.kbtnCancel);
     this.kryptonPanel1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.kryptonPanel1.Location = new System.Drawing.Point(0, 212);
     this.kryptonPanel1.Name     = "kryptonPanel1";
     this.kryptonPanel1.Size     = new System.Drawing.Size(622, 49);
     this.kryptonPanel1.TabIndex = 0;
     //
     // kbtnOK
     //
     this.kbtnOK.Location    = new System.Drawing.Point(424, 12);
     this.kbtnOK.Name        = "kbtnOK";
     this.kbtnOK.Size        = new System.Drawing.Size(90, 25);
     this.kbtnOK.TabIndex    = 1;
     this.kbtnOK.Values.Text = "&OK";
     this.kbtnOK.Enabled     = false;
     this.kbtnOK.Click      += new System.EventHandler(this.kbtnOK_Click);
     //
     // kbtnCancel
     //
     this.kbtnCancel.Location    = new System.Drawing.Point(520, 12);
     this.kbtnCancel.Name        = "kbtnCancel";
     this.kbtnCancel.Size        = new System.Drawing.Size(90, 25);
     this.kbtnCancel.TabIndex    = 0;
     this.kbtnCancel.Values.Text = "C&ancel";
     this.kbtnCancel.Click      += new System.EventHandler(this.kbtnCancel_Click);
     //
     // kryptonPanel2
     //
     this.kryptonPanel2.Controls.Add(this.ktxtPrompt);
     this.kryptonPanel2.Controls.Add(this.kwlMessage);
     this.kryptonPanel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonPanel2.Location = new System.Drawing.Point(0, 0);
     this.kryptonPanel2.Name     = "kryptonPanel2";
     this.kryptonPanel2.Size     = new System.Drawing.Size(622, 212);
     this.kryptonPanel2.TabIndex = 1;
     //
     // ktxtPrompt
     //
     this.ktxtPrompt.Location = new System.Drawing.Point(12, 178);
     this.ktxtPrompt.Name     = "ktxtPrompt";
     this.ktxtPrompt.Size     = new System.Drawing.Size(598, 24);
     this.ktxtPrompt.StateCommon.Content.Font  = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.ktxtPrompt.StateCommon.Content.TextH = Krypton.Toolkit.PaletteRelativeAlign.Inherit;
     this.ktxtPrompt.TabIndex     = 3;
     this.ktxtPrompt.TextChanged += new System.EventHandler(ktxtPrompt_TextChanged);
     //
     // kwlMessage
     //
     this.kwlMessage.AutoSize         = false;
     this.kwlMessage.Font             = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kwlMessage.ForeColor        = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(57)))), ((int)(((byte)(91)))));
     this.kwlMessage.Location         = new System.Drawing.Point(12, 9);
     this.kwlMessage.Name             = "kwlMessage";
     this.kwlMessage.Size             = new System.Drawing.Size(598, 156);
     this.kwlMessage.StateCommon.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kwlMessage.Text             = "{0}";
     this.kwlMessage.TextAlign        = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.SystemColors.ControlDarkDark;
     this.panel1.Dock      = System.Windows.Forms.DockStyle.Bottom;
     this.panel1.Location  = new System.Drawing.Point(0, 209);
     this.panel1.Name      = "panel1";
     this.panel1.Size      = new System.Drawing.Size(622, 3);
     this.panel1.TabIndex  = 2;
     //
     // KryptonInputBox
     //
     this.ClientSize = new System.Drawing.Size(622, 261);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.kryptonPanel2);
     this.Controls.Add(this.kryptonPanel1);
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.Name          = "KryptonInputBox";
     this.ShowIcon      = false;
     this.ShowInTaskbar = false;
     this.FormClosing  += new FormClosingEventHandler(KryptonInputBox_FormClosing);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
     this.kryptonPanel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
     this.kryptonPanel2.ResumeLayout(false);
     this.kryptonPanel2.PerformLayout();
     this.ResumeLayout(false);
 }
Ejemplo n.º 2
0
 private void InitializeComponent()
 {
     this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel();
     this.kbtnOk        = new Krypton.Toolkit.KryptonButton();
     this.kbtnCancel    = new Krypton.Toolkit.KryptonButton();
     this.kryptonPanel2 = new Krypton.Toolkit.KryptonPanel();
     this.ktxtPrompt    = new Krypton.Toolkit.KryptonTextBox();
     this.kwlMessage    = new Krypton.Toolkit.KryptonWrapLabel();
     this.panel1        = new System.Windows.Forms.Panel();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
     this.kryptonPanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
     this.kryptonPanel2.SuspendLayout();
     this.SuspendLayout();
     //
     // kryptonPanel1
     //
     this.kryptonPanel1.Controls.Add(this.kbtnOk);
     this.kryptonPanel1.Controls.Add(this.kbtnCancel);
     this.kryptonPanel1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.kryptonPanel1.Location = new System.Drawing.Point(0, 69);
     this.kryptonPanel1.Name     = "kryptonPanel1";
     this.kryptonPanel1.Size     = new System.Drawing.Size(357, 49);
     this.kryptonPanel1.TabIndex = 0;
     //
     // kbtnOk
     //
     this.kbtnOk.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnOk.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.kbtnOk.Location     = new System.Drawing.Point(159, 12);
     this.kbtnOk.Name         = "kbtnOk";
     this.kbtnOk.Size         = new System.Drawing.Size(90, 25);
     this.kbtnOk.TabIndex     = 1;
     this.kbtnOk.Values.Text  = "&OK";
     this.kbtnOk.Click       += new System.EventHandler(this.kbtnOk_Click);
     //
     // kbtnCancel
     //
     this.kbtnCancel.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.kbtnCancel.Location     = new System.Drawing.Point(255, 12);
     this.kbtnCancel.Name         = "kbtnCancel";
     this.kbtnCancel.Size         = new System.Drawing.Size(90, 25);
     this.kbtnCancel.TabIndex     = 0;
     this.kbtnCancel.Values.Text  = "&Cancel";
     this.kbtnCancel.Click       += new System.EventHandler(this.kbtnCancel_Click);
     //
     // kryptonPanel2
     //
     this.kryptonPanel2.Controls.Add(this.ktxtPrompt);
     this.kryptonPanel2.Controls.Add(this.kwlMessage);
     this.kryptonPanel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonPanel2.Location = new System.Drawing.Point(0, 0);
     this.kryptonPanel2.Name     = "kryptonPanel2";
     this.kryptonPanel2.Size     = new System.Drawing.Size(357, 69);
     this.kryptonPanel2.TabIndex = 1;
     //
     // ktxtPrompt
     //
     this.ktxtPrompt.Location     = new System.Drawing.Point(12, 37);
     this.ktxtPrompt.Name         = "ktxtPrompt";
     this.ktxtPrompt.Size         = new System.Drawing.Size(333, 23);
     this.ktxtPrompt.TabIndex     = 1;
     this.ktxtPrompt.TextChanged += new System.EventHandler(this.ktxtPrompt_TextChanged);
     this.ktxtPrompt.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.ktxtPrompt_KeyDown);
     //
     // kwlMessage
     //
     this.kwlMessage.AutoSize  = false;
     this.kwlMessage.Dock      = System.Windows.Forms.DockStyle.Top;
     this.kwlMessage.Font      = new System.Drawing.Font("Segoe UI", 9F);
     this.kwlMessage.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(57)))), ((int)(((byte)(91)))));
     this.kwlMessage.Location  = new System.Drawing.Point(0, 0);
     this.kwlMessage.Name      = "kwlMessage";
     this.kwlMessage.Size      = new System.Drawing.Size(357, 31);
     this.kwlMessage.Text      = "{0}";
     this.kwlMessage.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.SystemColors.ControlDarkDark;
     this.panel1.Dock      = System.Windows.Forms.DockStyle.Bottom;
     this.panel1.Location  = new System.Drawing.Point(0, 66);
     this.panel1.Name      = "panel1";
     this.panel1.Size      = new System.Drawing.Size(357, 3);
     this.panel1.TabIndex  = 2;
     //
     // KryptonInputBox
     //
     this.AcceptButton = this.kbtnOk;
     this.CancelButton = this.kbtnCancel;
     this.ClientSize   = new System.Drawing.Size(357, 118);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.kryptonPanel2);
     this.Controls.Add(this.kryptonPanel1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "KryptonInputBox";
     this.ShowIcon        = false;
     this.ShowInTaskbar   = false;
     this.FormClosing    += new System.Windows.Forms.FormClosingEventHandler(this.KryptonInputBoxTest_FormClosing);
     this.Load           += new System.EventHandler(this.KryptonInputBoxTest_Load);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
     this.kryptonPanel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
     this.kryptonPanel2.ResumeLayout(false);
     this.kryptonPanel2.PerformLayout();
     this.ResumeLayout(false);
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Initializes the Form's components.
        /// </summary>
        private void InitializeComponent()
        {
            components = new Container();

            _byteViewer = new KryptonByteViewer();
            KryptonPanel       bottomPanel         = new KryptonPanel();
            KryptonPanel       topPanel            = new KryptonPanel();
            KryptonGroupBox    groupBox            = new KryptonGroupBox();
            KryptonCheckButton unicodeButton       = new KryptonCheckButton();
            KryptonCheckButton hexButton           = new KryptonCheckButton();
            KryptonCheckButton ansiButton          = new KryptonCheckButton();
            KryptonCheckButton export              = new KryptonCheckButton();
            KryptonCheckSet    displayModeCheckset = new KryptonCheckSet(components);

            ((ISupportInitialize)(topPanel)).BeginInit();
            topPanel.SuspendLayout();
            ((ISupportInitialize)(groupBox)).BeginInit();
            groupBox.Panel.BeginInit();
            groupBox.Panel.SuspendLayout();
            groupBox.SuspendLayout();
            ((ISupportInitialize)(displayModeCheckset)).BeginInit();
            ((ISupportInitialize)(bottomPanel)).BeginInit();
            SuspendLayout();
            //
            // topPanel
            //
            topPanel.AutoSize = true;
            topPanel.Controls.Add(groupBox);
            topPanel.Controls.Add(export);
            topPanel.Dock     = DockStyle.Top;
            topPanel.Location = new System.Drawing.Point(0, 0);
            topPanel.Name     = "topPanel";
            topPanel.Padding  = new Padding(5);
            topPanel.Size     = new System.Drawing.Size(639, 65);
            topPanel.TabIndex = 0;
            //
            // groupBox
            //
            groupBox.AutoSize = true;
            groupBox.Location = new System.Drawing.Point(5, 0);
            groupBox.Name     = "groupBox";
            //
            // groupBox.Panel
            //
            groupBox.Panel.Controls.Add(unicodeButton);
            groupBox.Panel.Controls.Add(hexButton);
            groupBox.Panel.Controls.Add(ansiButton);
            groupBox.Size           = new System.Drawing.Size(280, 57);
            groupBox.TabIndex       = 0;
            groupBox.Values.Heading = @"Display Mode";
            //
            // unicodeButton
            //
            unicodeButton.Location    = new System.Drawing.Point(141, 3);
            unicodeButton.Name        = "unicodeButton";
            unicodeButton.Size        = new System.Drawing.Size(63, 25);
            unicodeButton.TabIndex    = 3;
            unicodeButton.Values.Text = @"Unicode";
            //
            // hexButton
            //
            hexButton.Checked     = true;
            hexButton.Location    = new System.Drawing.Point(3, 3);
            hexButton.Name        = "hexButton";
            hexButton.Size        = new System.Drawing.Size(63, 25);
            hexButton.TabIndex    = 2;
            hexButton.Values.Text = @"Hex";
            //
            // ansiButton
            //
            ansiButton.Location    = new System.Drawing.Point(72, 3);
            ansiButton.Name        = "ansiButton";
            ansiButton.Size        = new System.Drawing.Size(63, 25);
            ansiButton.TabIndex    = 1;
            ansiButton.Values.Text = @"ANSI";
            //

            // displayModeCheckset
            //
            displayModeCheckset.CheckButtons.Add(ansiButton);
            displayModeCheckset.CheckButtons.Add(hexButton);
            displayModeCheckset.CheckButtons.Add(unicodeButton);
            displayModeCheckset.CheckedButton         = hexButton;
            displayModeCheckset.CheckedButtonChanged += OnCheckedButtonChanged;
            //
            // export
            //
            export.Location    = new System.Drawing.Point(535, 22);
            export.Name        = "export";
            export.Size        = new System.Drawing.Size(80, 25);
            export.TabIndex    = 4;
            export.Values.Text = @"Export...";
            export.Click      += OnClickExport;
            //
            // bottomPanel
            //
            bottomPanel.Dock     = DockStyle.Fill;
            bottomPanel.Location = new System.Drawing.Point(0, 65);
            bottomPanel.Name     = "bottomPanel";
            bottomPanel.Size     = new System.Drawing.Size(639, 401);
            bottomPanel.TabIndex = 1;
            bottomPanel.Controls.Add(_byteViewer);
            //
            // byteViewer
            //
            _byteViewer.Dock            = DockStyle.Fill;
            _byteViewer.CellBorderStyle = TableLayoutPanelCellBorderStyle.None;
            //
            // Form1
            //
            AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            AutoScaleMode       = AutoScaleMode.Font;
            ClientSize          = new System.Drawing.Size(639, 466);
            Controls.Add(bottomPanel);
            Controls.Add(topPanel);
            FormBorderStyle = FormBorderStyle.FixedToolWindow;
            StartPosition   = FormStartPosition.CenterParent;
            Name            = @"Binary Viewer";
            Text            = @"Binary Viewer";
            ((ISupportInitialize)(topPanel)).EndInit();
            topPanel.ResumeLayout(false);
            topPanel.PerformLayout();
            groupBox.Panel.EndInit();
            groupBox.Panel.ResumeLayout(false);
            ((ISupportInitialize)(groupBox)).EndInit();
            groupBox.ResumeLayout(false);
            ((ISupportInitialize)(displayModeCheckset)).EndInit();
            ((ISupportInitialize)(bottomPanel)).EndInit();
            ResumeLayout(false);
            PerformLayout();
        }