コード例 #1
0
 private void InitializeComponent()
 {
     this.components       = new System.ComponentModel.Container();
     this.klblPaletteStyle = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.kbtnApplyTheme   = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kryptonManager1  = new ComponentFactory.Krypton.Toolkit.KryptonManager(this.components);
     this.kcmbSelection    = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
     ((System.ComponentModel.ISupportInitialize)(this.kcmbSelection)).BeginInit();
     this.SuspendLayout();
     //
     // klblPaletteStyle
     //
     this.klblPaletteStyle.Location = new System.Drawing.Point(16, 13);
     this.klblPaletteStyle.Name     = "klblPaletteStyle";
     this.klblPaletteStyle.Size     = new System.Drawing.Size(154, 24);
     this.klblPaletteStyle.StateCommon.LongText.Font  = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblPaletteStyle.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblPaletteStyle.TabIndex    = 0;
     this.klblPaletteStyle.Values.Text = "Select Palette Style:";
     //
     // kbtnApplyTheme
     //
     this.kbtnApplyTheme.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnApplyTheme.Enabled  = false;
     this.kbtnApplyTheme.Location = new System.Drawing.Point(383, 13);
     this.kbtnApplyTheme.Name     = "kbtnApplyTheme";
     this.kbtnApplyTheme.Size     = new System.Drawing.Size(90, 25);
     this.kbtnApplyTheme.StateCommon.Content.LongText.Font  = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnApplyTheme.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnApplyTheme.TabIndex    = 2;
     this.kbtnApplyTheme.Values.Text = "&Apply";
     this.kbtnApplyTheme.Click      += new System.EventHandler(this.kbtnApplyTheme_Click);
     //
     // kcmbSelection
     //
     this.kcmbSelection.Anchor        = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.kcmbSelection.DropDownWidth = 255;
     this.kcmbSelection.Location      = new System.Drawing.Point(166, 13);
     this.kcmbSelection.Name          = "kcmbSelection";
     this.kcmbSelection.Size          = new System.Drawing.Size(211, 25);
     this.kcmbSelection.StateCommon.ComboBox.Content.Font       = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kcmbSelection.StateCommon.Item.Content.LongText.Font  = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kcmbSelection.StateCommon.Item.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kcmbSelection.TabIndex              = 3;
     this.kcmbSelection.SelectedIndexChanged += new System.EventHandler(this.kcmbSelection_SelectedIndexChanged);
     //
     // KryptonPaletteSelector
     //
     this.BackColor = System.Drawing.Color.Transparent;
     this.Controls.Add(this.kcmbSelection);
     this.Controls.Add(this.kbtnApplyTheme);
     this.Controls.Add(this.klblPaletteStyle);
     this.Font  = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Name  = "KryptonPaletteSelector";
     this.Size  = new System.Drawing.Size(492, 54);
     this.Load += new System.EventHandler(this.KryptonPaletteSelector_Load);
     ((System.ComponentModel.ISupportInitialize)(this.kcmbSelection)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #2
0
 private bool InitComboBoxInfo(ComponentFactory.Krypton.Toolkit.KryptonComboBox cbo)
 {
     this.cbi        = new Win32.ComboBoxInfo();
     this.cbi.cbSize = Marshal.SizeOf(this.cbi);
     if (!Win32.GetComboBoxInfo(cbo.ComboBox.Handle, ref this.cbi))
     {
         return(false);
     }
     return(true);
 }
コード例 #3
0
 private void InitializeComponent()
 {
     this.kryptonPanel1    = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kbtnOk           = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kbtnCancel       = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kbtnAbort        = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kbtnYes          = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kbtnNo           = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.panel1           = new System.Windows.Forms.Panel();
     this.kryptonPanel2    = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.ktxtUserResponse = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
     this.kcmbUserChoice   = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
     this.klblMessage      = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.pbxIcon          = new System.Windows.Forms.PictureBox();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
     this.kryptonPanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
     this.kryptonPanel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kcmbUserChoice)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pbxIcon)).BeginInit();
     this.SuspendLayout();
     //
     // kryptonPanel1
     //
     this.kryptonPanel1.Controls.Add(this.kbtnOk);
     this.kryptonPanel1.Controls.Add(this.kbtnCancel);
     this.kryptonPanel1.Controls.Add(this.kbtnAbort);
     this.kryptonPanel1.Controls.Add(this.kbtnYes);
     this.kryptonPanel1.Controls.Add(this.kbtnNo);
     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(578, 51);
     this.kryptonPanel1.TabIndex = 1;
     //
     // kbtnOk
     //
     this.kbtnOk.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnOk.Location = new System.Drawing.Point(380, 8);
     this.kbtnOk.Name     = "kbtnOk";
     this.kbtnOk.Size     = new System.Drawing.Size(90, 31);
     this.kbtnOk.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnOk.TabIndex    = 4;
     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.Location = new System.Drawing.Point(476, 8);
     this.kbtnCancel.Name     = "kbtnCancel";
     this.kbtnCancel.Size     = new System.Drawing.Size(90, 31);
     this.kbtnCancel.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnCancel.TabIndex    = 3;
     this.kbtnCancel.Values.Text = "&Cancel";
     this.kbtnCancel.Click      += new System.EventHandler(this.kbtnCancel_Click);
     //
     // kbtnAbort
     //
     this.kbtnAbort.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnAbort.Location = new System.Drawing.Point(476, 8);
     this.kbtnAbort.Name     = "kbtnAbort";
     this.kbtnAbort.Size     = new System.Drawing.Size(90, 31);
     this.kbtnAbort.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnAbort.TabIndex    = 2;
     this.kbtnAbort.Values.Text = "&Abort";
     this.kbtnAbort.Click      += new System.EventHandler(this.kbtnAbort_Click);
     //
     // kbtnYes
     //
     this.kbtnYes.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnYes.Location = new System.Drawing.Point(380, 8);
     this.kbtnYes.Name     = "kbtnYes";
     this.kbtnYes.Size     = new System.Drawing.Size(90, 31);
     this.kbtnYes.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnYes.TabIndex    = 1;
     this.kbtnYes.Values.Text = "&Yes";
     this.kbtnYes.Click      += new System.EventHandler(this.kbtnYes_Click);
     //
     // kbtnNo
     //
     this.kbtnNo.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnNo.Location = new System.Drawing.Point(476, 8);
     this.kbtnNo.Name     = "kbtnNo";
     this.kbtnNo.Size     = new System.Drawing.Size(90, 31);
     this.kbtnNo.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnNo.TabIndex    = 0;
     this.kbtnNo.Values.Text = "&No";
     this.kbtnNo.Click      += new System.EventHandler(this.kbtnNo_Click);
     //
     // 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(578, 3);
     this.panel1.TabIndex  = 9;
     //
     // kryptonPanel2
     //
     this.kryptonPanel2.Controls.Add(this.ktxtUserResponse);
     this.kryptonPanel2.Controls.Add(this.kcmbUserChoice);
     this.kryptonPanel2.Controls.Add(this.klblMessage);
     this.kryptonPanel2.Controls.Add(this.pbxIcon);
     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(578, 209);
     this.kryptonPanel2.TabIndex = 10;
     //
     // ktxtUserResponse
     //
     this.ktxtUserResponse.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                           | System.Windows.Forms.AnchorStyles.Left)
                                                                          | System.Windows.Forms.AnchorStyles.Right)));
     this.ktxtUserResponse.Location = new System.Drawing.Point(180, 150);
     this.ktxtUserResponse.Name     = "ktxtUserResponse";
     this.ktxtUserResponse.Size     = new System.Drawing.Size(269, 25);
     this.ktxtUserResponse.StateCommon.Content.Font  = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.ktxtUserResponse.StateCommon.Content.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Inherit;
     this.ktxtUserResponse.TabIndex = 12;
     this.ktxtUserResponse.ToolTipValues.Description    = "Type your response here...";
     this.ktxtUserResponse.ToolTipValues.EnableToolTips = true;
     this.ktxtUserResponse.ToolTipValues.Heading        = "User Response";
     //
     // kcmbUserChoice
     //
     this.kcmbUserChoice.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                         | System.Windows.Forms.AnchorStyles.Left)
                                                                        | System.Windows.Forms.AnchorStyles.Right)));
     this.kcmbUserChoice.DropDownStyle  = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.kcmbUserChoice.DropDownWidth  = 269;
     this.kcmbUserChoice.IntegralHeight = false;
     this.kcmbUserChoice.Location       = new System.Drawing.Point(180, 150);
     this.kcmbUserChoice.Name           = "kcmbUserChoice";
     this.kcmbUserChoice.Size           = new System.Drawing.Size(269, 23);
     this.kcmbUserChoice.StateCommon.ComboBox.Content.Font       = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kcmbUserChoice.StateCommon.ComboBox.Content.TextH      = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Near;
     this.kcmbUserChoice.StateCommon.Item.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kcmbUserChoice.TabIndex = 11;
     //
     // klblMessage
     //
     this.klblMessage.AutoSize = false;
     this.klblMessage.Location = new System.Drawing.Point(82, 12);
     this.klblMessage.Name     = "klblMessage";
     this.klblMessage.Size     = new System.Drawing.Size(482, 132);
     this.klblMessage.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblMessage.TabIndex    = 10;
     this.klblMessage.Values.Text = "{0}";
     //
     // pbxIcon
     //
     this.pbxIcon.BackColor = System.Drawing.Color.Transparent;
     this.pbxIcon.Location  = new System.Drawing.Point(12, 12);
     this.pbxIcon.Name      = "pbxIcon";
     this.pbxIcon.Size      = new System.Drawing.Size(64, 64);
     this.pbxIcon.SizeMode  = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
     this.pbxIcon.TabIndex  = 4;
     this.pbxIcon.TabStop   = false;
     //
     // KryptonInputBoxExtended
     //
     this.BackColor = System.Drawing.Color.Transparent;
     this.Controls.Add(this.kryptonPanel2);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.kryptonPanel1);
     this.Name = "KryptonInputBoxExtended";
     this.Size = new System.Drawing.Size(578, 263);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
     this.kryptonPanel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
     this.kryptonPanel2.ResumeLayout(false);
     this.kryptonPanel2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kcmbUserChoice)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pbxIcon)).EndInit();
     this.ResumeLayout(false);
 }