示例#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 VelerSoftware.Design.Toolkit.KryptonPanel();
     this._textBoxResponse = new VelerSoftware.Design.Toolkit.KryptonTextBox();
     this._labelPrompt     = new VelerSoftware.Design.Toolkit.KryptonWrapLabel();
     this._buttonCancel    = new VelerSoftware.Design.Toolkit.KryptonButton();
     this._buttonOK        = new VelerSoftware.Design.Toolkit.KryptonButton();
     ((System.ComponentModel.ISupportInitialize)(this._panelMessage)).BeginInit();
     this._panelMessage.SuspendLayout();
     this.SuspendLayout();
     //
     // _panelMessage
     //
     this._panelMessage.Controls.Add(this._textBoxResponse);
     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;
     //
     // _textBoxResponse
     //
     this._textBoxResponse.Location = new System.Drawing.Point(12, 86);
     this._textBoxResponse.Name     = "_textBoxResponse";
     this._textBoxResponse.Size     = new System.Drawing.Size(333, 20);
     this._textBoxResponse.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 = VelerSoftware.Design.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";
     this._buttonCancel.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.button_keyDown);
     //
     // _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";
     this._buttonOK.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.button_keyDown);
     //
     // 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);
 }