Exemple #1
0
        public DcxBox(DcxContainer container, int id)
            : base(container, id)
        {
            this.control = new GroupBox();
            this.control.Text = "Box " + id;
            this.control.Name = id.ToString();

            this.controlType = ControlType.Box;

            setupControlActionListeners(this.control);
        }
Exemple #2
0
        public DcxPanel(DcxContainer container, int id)
            : base(container, id)
        {
            this.control = new Panel();
            this.control.Text = "Box " + id;
            this.control.Name = id.ToString();
            ////control.BorderStyle = BorderStyle.FixedSingle;

            this.controlType = ControlType.Panel;
            this.control.Paint += new PaintEventHandler(control_Paint);

            setupControlActionListeners(this.control);
        }
Exemple #3
0
        public DcxButton(DcxContainer container, int id)
            : base(container, id)
        {
            control = new Button();
            control.Text = "Button " + id;
            control.Name = id.ToString();

            this.controlType = ControlType.Button;

            styles.Add("bitmap", new DcxControlStyle("bitmap"));
            styles.Add("default", new DcxControlStyle("default"));
            styles.Add("tooltips", new DcxControlStyle("tooltips"));

            setupControlActionListeners(this.control);
        }
Exemple #4
0
        public DcxCheck(DcxContainer container, int id)
            : base(container, id)
        {
            control = new CheckBox();
            control.Text = "Check " + id;
            control.Name = id.ToString();

            this.controlType = ControlType.Check;

            styles.Add("3state", new DcxControlStyle("3state", changeStyle));
            styles.Add("center", new DcxControlStyle("center", changeStyle));
            styles.Add("pushlike", new DcxControlStyle("pushlike", changeStyle));
            styles.Add("right", new DcxControlStyle("right", changeStyle));
            styles.Add("rjustify", new DcxControlStyle("rjustify", changeStyle));
            styles.Add("tooltips", new DcxControlStyle("tooltips"));

            setupControlActionListeners(this.control);
        }