Пример #1
0
            // ********************************************* 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);
            }
Пример #2
0
            // ********************************************* 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);
            }
Пример #3
0
 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);
     }
 }
Пример #4
0
 /// <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);
 }
Пример #5
0
 /// <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);
 }
Пример #6
0
        private Color GetCodeItemBackColor(CustomCheckedListBox listbox, DrawItemEventArgs e)
        {
            if (e.Index == selectedLine)
            {
                return(DebuggerBreakpointHitColor);
            }

            if (listbox.GetItemChecked(e.Index))
            {
                return(DebuggerBreakpointColor);
            }

            return(listbox.BackColor);
        }
Пример #7
0
        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);
        }
Пример #8
0
 private Color IPMcustomCheckedListBox_GetBackColor(CustomCheckedListBox listbox, DrawItemEventArgs e)
 {
     return(itemColor[e.Index]);
 }
Пример #9
0
 // ********************************************* 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);
 }
Пример #10
0
 private Color GetCodeItemForeColor(CustomCheckedListBox listbox, DrawItemEventArgs e)
 {
     return(listbox.ForeColor);
 }
Пример #11
0
 // ********************************************* 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);
 }
Пример #12
0
 private Color customCheckedListBox1_GetBackColor(CustomCheckedListBox listbox, DrawItemEventArgs e)
 {
     return(rowStatus[e.Index].background);
 }
Пример #13
0
 /// <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;
 }