Beispiel #1
0
        ////////////////////////////////////////////////////////////////////////////

        #endregion

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

        ////////////////////////////////////////////////////////////////////////////
        public TabControl(Manager manager)
            : base(manager)
        {
            GamePadActions             = new TabControlGamePadActions();
            Manager.Input.GamePadDown += new GamePadEventHandler(Input_GamePadDown);
            this.CanFocus              = false;
        }
Beispiel #2
0
 /// <summary>
 /// Creates a new TabControl.
 /// </summary>
 /// <param name="manager">GUI manager for the control.</param>
 public TabControl(Manager manager)
     : base(manager)
 {
     GamePadActions = new TabControlGamePadActions();
     Manager.Input.GamePadDown += new GamePadEventHandler(Input_GamePadDown);
     this.CanFocus = false;
 }
Beispiel #3
0
        ////////////////////////////////////////////////////////////////////////////       
        public TabControl(Manager manager, Boolean immediateInit)
            : base(manager)
        {
            GamePadActions = new TabControlGamePadActions();
            Manager.Input.GamePadDown += new GamePadEventHandler(Input_GamePadDown);
            this.CanFocus = false;

            if (immediateInit)
            Init();
        }
Beispiel #4
0
        ////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////       
        public TabControl(Manager manager, int tabPagesToAdd, Boolean immediateInit)
            : base(manager)
        {
            GamePadActions = new TabControlGamePadActions();
            Manager.Input.GamePadDown += new GamePadEventHandler(Input_GamePadDown);
            this.CanFocus = false;

            //Add specified number of Tab Pages
            for(int i = 0; i <= tabPagesToAdd; i++)
            {
            AddPage();
            }

            if (immediateInit)
            Init();
        }