// icon list box

        private void extButton1_Click(object sender, EventArgs e)
        {
            CheckedIconListBoxForm f = new CheckedIconListBoxForm();

            var imglist = new Image[] { Properties.Resources.edlogo24, Properties.Resources.Logo8bpp48, Properties.Resources.galaxy_white, Properties.Resources.Logo8bpp48rot, Properties.Resources.galaxy_red, };

            for (int i = 0; i < 200; i++)
            {
                f.AddItem("T" + i.ToString(), "Tx" + i.ToString(), imglist[i % imglist.Length], false, (i == 0) ? "T1;T2" : (i == 1) ? "T0;T2" : (i == 2) ? "T0;T1": null, i <= 2);
            }

            f.PositionBelow(extButton1);
            f.SetChecked("Two;Four");
            f.CheckedChanged    += F_CheckedChanged;
            f.SaveSettings      += F_SaveSettings;
            f.CheckBoxColor      = Color.Orange;
            f.CheckBoxInnerColor = Color.Yellow;
            f.CheckColor         = Color.White;
            f.FlatStyle          = FlatStyle.Popup;
            //f.ImageSize = new Size(32, 32);
            f.SliderColor      = Color.Green;
            f.ThumbButtonColor = Color.Red;
            f.ArrowButtonColor = Color.Yellow;
            f.Font             = new Font("Euro Caps", 16);
            f.Show(this);
        }
        private void extButton2_Click(object sender, EventArgs e)
        {
            if (showhidelistbox1 == null)
            {
                showhidelistbox1 = new CheckedIconListBoxForm();

                var imglist = new Image[] { Properties.Resources.edlogo24, Properties.Resources.Logo8bpp48, Properties.Resources.galaxy_white, Properties.Resources.Logo8bpp48rot, Properties.Resources.galaxy_red, };

                for (int i = 0; i < 200; i++)
                {
                    showhidelistbox1.AddItem("T" + i.ToString(), "Tx" + i.ToString(), imglist[i % imglist.Length]);
                }
                showhidelistbox1.CheckedChanged    += F_CheckedChanged;
                showhidelistbox1.SaveSettings      += F_SaveSettings;
                showhidelistbox1.CheckBoxColor      = Color.Orange;
                showhidelistbox1.CheckBoxInnerColor = Color.Yellow;
                showhidelistbox1.CheckColor         = Color.White;
                showhidelistbox1.FlatStyle          = FlatStyle.Popup;
                //showhide.ImageSize = new Size(32, 32);
                showhidelistbox1.SliderColor      = Color.Green;
                showhidelistbox1.ThumbButtonColor = Color.Red;
                showhidelistbox1.ArrowButtonColor = Color.Yellow;
                showhidelistbox1.SetChecked("Two;Four");
                showhidelistbox1.Font = new Font("Euro Caps", 10);
                showhidelistbox1.CloseOnDeactivate = false;
                showhidelistbox1.HideOnDeactivate  = true;
                System.Diagnostics.Debug.WriteLine("Make");
            }
            System.Diagnostics.Debug.WriteLine("Position");

            showhidelistbox1.PositionBelow(extButton2);
            showhidelistbox1.Show(this);
        }
예제 #3
0
        private void extButton1_Click(object sender, EventArgs e)
        {
            CheckedIconListBoxForm f = new CheckedIconListBoxForm();

            var imglist = new Image[] { Properties.Resources.edlogo24, Properties.Resources.Logo8bpp48, Properties.Resources.galaxy_white, Properties.Resources.Logo8bpp48rot, Properties.Resources.galaxy_red, };

            for (int i = 0; i < 20; i++)
            {
                f.AddItem("T" + i.ToString(), "Tx" + i.ToString(), imglist[i % imglist.Length]);
            }

            f.PositionBelow(extButton1, new Size(200, 300));
            f.SetChecked("Two;Four");
            f.SetColour(Color.AliceBlue, Color.DarkOrange);
            f.CheckedChanged    += F_CheckedChanged;
            f.CheckBoxColor      = Color.Orange;
            f.CheckBoxInnerColor = Color.Yellow;
            f.CheckColor         = Color.White;
            f.FlatStyle          = FlatStyle.Popup;
            //f.ImageSize = new Size(32, 32);
            f.SliderColor          = Color.Green;
            f.ThumbButtonColor     = Color.Red;
            f.ArrowButtonColor     = Color.Yellow;
            f.TickBoxReductionSize = 8;
            f.Font = new Font("Euro Caps", 16);
            f.Show(this);
        }
        private void extButton4_Click(object sender, EventArgs e)
        {
            CheckedIconListBoxForm f = new CheckedIconListBoxForm();

            var imglist = new Image[] { Properties.Resources.edlogo24, Properties.Resources.Logo8bpp48, Properties.Resources.galaxy_white, Properties.Resources.Logo8bpp48rot, Properties.Resources.galaxy_red, };

            for (int i = 0; i < 20; i++)
            {
                f.AddItem("T" + i.ToString(), "Tx" + i.ToString(), imglist[i % imglist.Length]);
            }

            f.PositionBelow(extButton1);
            f.SetChecked("Two;Four");
            f.CheckedChanged += F_CheckedChanged;
            f.Font            = new Font("Euro Caps", 16);
            theme.ApplyStd(f);
            f.Show(this);
        }
        private void extButton3_Click(object sender, EventArgs e)
        {
            CheckedIconListBoxForm f = new CheckedIconListBoxForm();

            var imglist = new Image[] { Properties.Resources.edlogo24, Properties.Resources.Logo8bpp48, Properties.Resources.galaxy_white, Properties.Resources.Logo8bpp48rot, Properties.Resources.galaxy_red, };

            for (int i = 0; i < 20; i++)
            {
                f.AddItem("T" + i.ToString(), "Tx" + i.ToString(), imglist[i % imglist.Length]);
            }

            f.PositionBelow(extButton1);
            f.SetChecked("Two;Four");
            f.CheckedChanged    += F_CheckedChanged;
            f.CheckBoxColor      = Color.Orange;
            f.CheckBoxInnerColor = Color.Yellow;
            f.CheckColor         = Color.White;
            f.FlatStyle          = FlatStyle.System;
            //f.ImageSize = new Size(32, 32);
            f.Show(this);
        }