Пример #1
0
        public DcxBox(DcxContainer container, int id)
            : base(container, id)
        {
            control = new GroupBox();
            control.Text = "Box " + id;
            control.Name = id.ToString();

            this.controlType = ControlType.Box;

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

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

            setupControlActionListeners(this.control);
        }
Пример #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);
        }
Пример #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);
        }
Пример #5
0
 public DcxContainer(DcxContainer container, int id)
     : base(container, id)
 {
     children = new List<DcxControl>();
 }