Пример #1
0
 /// <summary>
 /// Initialize a new instance of the PaletteWrapLabel class.
 /// </summary>
 /// <param name="wrapLabel">Reference to owning control.</param>
 public PaletteWrapLabel(KryptonWrapLabel wrapLabel)
 {
     _wrapLabel = wrapLabel;
     _font      = null;
     _textColor = Color.Empty;
     _hint      = PaletteTextHint.Inherit;
 }
        /// <summary>
        /// Initialize a new instance of the KryptonWrapLabelActionList class.
        /// </summary>
        /// <param name="owner">Designer that owns this action list instance.</param>
        public KryptonWrapLabelActionList(KryptonWrapLabelDesigner owner)
            : base(owner.Component)
        {
            // Remember the label instance
            _wrapLabel = owner.Component as KryptonWrapLabel;

            // Cache service used to notify when a property has changed
            _service = (IComponentChangeService)GetService(typeof(IComponentChangeService));
        }
Пример #3
0
 private void InitializeComponent()
 {
     this._panelMessage = new Krypton.Toolkit.KryptonPanel();
     this._labelPrompt  = new Krypton.Toolkit.KryptonWrapLabel();
     this._buttonCancel = new Krypton.Toolkit.KryptonButton();
     this._buttonOK     = new Krypton.Toolkit.KryptonButton();
     this.ktxtResponse  = new Krypton.Toolkit.KryptonTextBox();
     ((System.ComponentModel.ISupportInitialize)(this._panelMessage)).BeginInit();
     this._panelMessage.SuspendLayout();
     this.SuspendLayout();
     //
     // _panelMessage
     //
     this._panelMessage.Controls.Add(this.ktxtResponse);
     this._panelMessage.Controls.Add(this._labelPrompt);
     this._panelMessage.Controls.Add(this._buttonCancel);
     this._panelMessage.Controls.Add(this._buttonOK);
     this._panelMessage.Dock     = System.Windows.Forms.DockStyle.Fill;
     this._panelMessage.Location = new System.Drawing.Point(0, 0);
     this._panelMessage.Name     = "_panelMessage";
     this._panelMessage.Size     = new System.Drawing.Size(357, 118);
     this._panelMessage.TabIndex = 0;
     //
     // _labelPrompt
     //
     this._labelPrompt.AutoSize   = false;
     this._labelPrompt.Font       = new System.Drawing.Font("Segoe UI", 9F);
     this._labelPrompt.ForeColor  = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(57)))), ((int)(((byte)(91)))));
     this._labelPrompt.LabelStyle = Krypton.Toolkit.LabelStyle.NormalPanel;
     this._labelPrompt.Location   = new System.Drawing.Point(12, 12);
     this._labelPrompt.Margin     = new System.Windows.Forms.Padding(0);
     this._labelPrompt.Name       = "_labelPrompt";
     this._labelPrompt.Size       = new System.Drawing.Size(78, 15);
     this._labelPrompt.Text       = "Prompt";
     //
     // _buttonCancel
     //
     this._buttonCancel.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this._buttonCancel.AutoSize     = true;
     this._buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this._buttonCancel.Location     = new System.Drawing.Point(295, 43);
     this._buttonCancel.Margin       = new System.Windows.Forms.Padding(0);
     this._buttonCancel.MinimumSize  = new System.Drawing.Size(50, 26);
     this._buttonCancel.Name         = "_buttonCancel";
     this._buttonCancel.Size         = new System.Drawing.Size(50, 26);
     this._buttonCancel.TabIndex     = 2;
     this._buttonCancel.Values.Text  = "Cancel";
     //
     // _buttonOK
     //
     this._buttonOK.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this._buttonOK.AutoSize     = true;
     this._buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
     this._buttonOK.Location     = new System.Drawing.Point(295, 12);
     this._buttonOK.Margin       = new System.Windows.Forms.Padding(0);
     this._buttonOK.MinimumSize  = new System.Drawing.Size(50, 26);
     this._buttonOK.Name         = "_buttonOK";
     this._buttonOK.Size         = new System.Drawing.Size(50, 26);
     this._buttonOK.TabIndex     = 1;
     this._buttonOK.Values.Text  = "OK";
     //
     // ktxtResponse
     //
     this.ktxtResponse.Location = new System.Drawing.Point(12, 83);
     this.ktxtResponse.Name     = "ktxtResponse";
     this.ktxtResponse.Size     = new System.Drawing.Size(333, 23);
     this.ktxtResponse.TabIndex = 3;
     //
     // KryptonInputBox
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(357, 118);
     this.Controls.Add(this._panelMessage);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "KryptonInputBox";
     this.ShowIcon        = false;
     this.ShowInTaskbar   = false;
     this.SizeGripStyle   = System.Windows.Forms.SizeGripStyle.Hide;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     ((System.ComponentModel.ISupportInitialize)(this._panelMessage)).EndInit();
     this._panelMessage.ResumeLayout(false);
     this._panelMessage.PerformLayout();
     this.ResumeLayout(false);
 }
Пример #4
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);
 }
Пример #5
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);
 }