Example #1
0
        } // Rounding

        #endregion

        #region Constructor

        public SpinBox(SpinBoxMode mode)
        {
            Step = 0.25f;
            Maximum = 100;
            Minimum = 0;
            this.mode = mode;
            ReadOnly = true;

            Height = 20;
            Width = 64;

            btnUp = new Button { CanFocus = false };
            btnUp.MousePress += Button_MousePress;
            Add(btnUp, false);

            btnDown = new Button { CanFocus = false };
            btnDown.MousePress += Button_MousePress;
            Add(btnDown, false);
        } // SpinBox
Example #2
0
        ////////////////////////////////////////////////////////////////////////////

        #endregion

        #region //// Construstors //////

        ////////////////////////////////////////////////////////////////////////////
        public SpinBox(Manager manager, SpinBoxMode mode) : base(manager)
        {
            this.mode = mode;
            ReadOnly  = true;

            Height = 20;
            Width  = 64;

            btnUp = new Button(Manager);
            btnUp.Init();
            btnUp.CanFocus    = false;
            btnUp.MousePress += new MouseEventHandler(btn_MousePress);
            Add(btnUp, false);

            btnDown = new Button(Manager);
            btnDown.Init();
            btnDown.CanFocus    = false;
            btnDown.MousePress += new MouseEventHandler(btn_MousePress);
            Add(btnDown, false);
        }
Example #3
0
        public SpinBox(Manager manager, SpinBoxMode mode) : base(manager)
        {
            this.mode     = mode;
            ReadOnly      = true;
            DisplayFormat = "n";

            Height = 20;
            Width  = 64;

            btnUp = new Button(Manager);
            btnUp.Init();
            btnUp.CanFocus    = false;
            btnUp.MousePress += btn_MousePress;
            Add(btnUp, false);

            btnDown = new Button(Manager);
            btnDown.Init();
            btnDown.CanFocus    = false;
            btnDown.MousePress += btn_MousePress;
            Add(btnDown, false);
        }
        ////////////////////////////////////////////////////////////////////////////       
        public SpinBox(Manager manager, SpinBoxMode mode)
            : base(manager)
        {
            this.mode = mode;
              ReadOnly = true;

              Height = 20;
              Width = 64;

              btnUp = new Button(Manager);
              btnUp.Init();
              btnUp.CanFocus = false;
              btnUp.MousePress += new MouseEventHandler(btn_MousePress);
              Add(btnUp, false);

              btnDown = new Button(Manager);
              btnDown.Init();
              btnDown.CanFocus = false;
              btnDown.MousePress += new MouseEventHandler(btn_MousePress);
              Add(btnDown, false);
        }