// ********************************************* Methods ********************************************* // Create a CustomCheckedListBox which fills up the entire form area. private void InitializeComponent() { cclb = new CustomCheckedListBox(); SuspendLayout(); // // cclb // cclb.BorderStyle = BorderStyle.None; cclb.Dock = DockStyle.Fill; cclb.FormattingEnabled = true; cclb.Location = new Point(0, 0); cclb.Name = "cclb"; cclb.Size = new Size(47, 15); cclb.TabIndex = 0; // // Dropdown // AutoScaleDimensions = new SizeF(6F, 13F); AutoScaleMode = AutoScaleMode.Font; BackColor = SystemColors.Menu; ClientSize = new Size(47, 16); ControlBox = false; Controls.Add(cclb); ForeColor = SystemColors.ControlText; FormBorderStyle = FormBorderStyle.FixedToolWindow; MinimizeBox = false; Name = "ccbParent"; StartPosition = FormStartPosition.Manual; ResumeLayout(false); }
// ********************************************* Methods ********************************************* // Create a CustomCheckedListBox which fills up the entire form area. private void InitializeComponent() { this.cclb = new CustomCheckedListBox(); this.SuspendLayout(); // // cclb // this.cclb.BorderStyle = System.Windows.Forms.BorderStyle.None; this.cclb.Dock = System.Windows.Forms.DockStyle.Fill; this.cclb.FormattingEnabled = true; this.cclb.Location = new System.Drawing.Point(0, 0); this.cclb.Name = "cclb"; this.cclb.Size = new System.Drawing.Size(47, 15); this.cclb.TabIndex = 0; // // Dropdown // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.SystemColors.Menu; this.ClientSize = new System.Drawing.Size(47, 16); this.ControlBox = false; this.Controls.Add(this.cclb); this.ForeColor = System.Drawing.SystemColors.ControlText; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.MinimizeBox = false; this.Name = "ccbParent"; this.StartPosition = System.Windows.Forms.FormStartPosition.Manual; this.ResumeLayout(false); }
private Font customCheckedListBox1_GetFont(CustomCheckedListBox listbox, DrawItemEventArgs e) { if (e.Index == 0) { return(new Font(FontFamily.GenericSerif, currentFont.Size, FontStyle.Strikeout, GraphicsUnit.Point)); } else { return(currentFont); } }
/// <summary> /// Create the popup's content /// </summary> /// <returns>The control to add to the popup</returns> protected override Control CreateContent() { listBox = new CustomCheckedListBox(); listBox.BorderStyle = BorderStyle.None; listBox.Dock = DockStyle.Fill; listBox.FormattingEnabled = true; listBox.Location = new Point(0, 0); listBox.Name = "listBox"; listBox.Size = new Size(47, 15); listBox.TabIndex = 0; return(listBox); }
/// <summary> /// Create the popup's content /// </summary> /// <returns>The control to add to the popup</returns> protected override Control CreateContent() { this.listBox = new CustomCheckedListBox(); this.listBox.BorderStyle = System.Windows.Forms.BorderStyle.None; this.listBox.Dock = System.Windows.Forms.DockStyle.Fill; this.listBox.FormattingEnabled = true; this.listBox.Location = new System.Drawing.Point(0, 0); this.listBox.Name = "listBox"; this.listBox.Size = new System.Drawing.Size(47, 15); this.listBox.TabIndex = 0; return(this.listBox); }
private Color GetCodeItemBackColor(CustomCheckedListBox listbox, DrawItemEventArgs e) { if (e.Index == selectedLine) { return(DebuggerBreakpointHitColor); } if (listbox.GetItemChecked(e.Index)) { return(DebuggerBreakpointColor); } return(listbox.BackColor); }
public FLDebuggerWindow(FLProgram program) { Program = program; marks = Program.ToString(out string source); Source = source; InitializeComponent(); clbCode = new CustomCheckedListBox(GetCodeItemBackColor, GetCodeItemForeColor); Controls.Add(clbCode); clbCode.BackColor = Color.DimGray; clbCode.ForeColor = Color.Black; clbCode.CheckOnClick = true; clbCode.Dock = DockStyle.Fill; Closing += CodeView_Closing; StyleManager.RegisterControls(this); }
private Color IPMcustomCheckedListBox_GetBackColor(CustomCheckedListBox listbox, DrawItemEventArgs e) { return(itemColor[e.Index]); }
private Color GetCodeItemForeColor(CustomCheckedListBox listbox, DrawItemEventArgs e) { return(listbox.ForeColor); }
// ********************************************* Methods ********************************************* // Create a CustomCheckedListBox which fills up the entire form area. private void InitializeComponent() { cclb = new CustomCheckedListBox(); SuspendLayout(); // // cclb // cclb.BorderStyle = BorderStyle.None; cclb.Dock = DockStyle.Fill; cclb.FormattingEnabled = true; cclb.Location = new Point(0, 0); cclb.Name = "cclb"; cclb.Size = new Size(47, 15); cclb.TabIndex = 0; cclb.IntegralHeight = false; cclb.CheckOnClick = true; // // Dropdown // AutoScaleDimensions = new SizeF(6F, 13F); AutoScaleMode = AutoScaleMode.Font; BackColor = SystemColors.Menu; ClientSize = new Size(47, 16); Controls.Add(cclb); ForeColor = SystemColors.ControlText; Name = "ccbParent"; ResumeLayout(false); }
private Color customCheckedListBox1_GetBackColor(CustomCheckedListBox listbox, DrawItemEventArgs e) { return(rowStatus[e.Index].background); }
/// <summary> /// Create the popup's content /// </summary> /// <returns>The control to add to the popup</returns> protected override Control CreateContent() { listBox = new CustomCheckedListBox(); listBox.BorderStyle = BorderStyle.None; listBox.Dock = DockStyle.Fill; listBox.FormattingEnabled = true; listBox.Location = new Point(0, 0); listBox.Name = "listBox"; listBox.Size = new Size(47, 15); listBox.TabIndex = 0; return listBox; }