コード例 #1
0
        /*
         * public void SelectTab(int key)
         * {
         *  if (m_selectedTab != key)
         *  {
         *      DeactivateControls(m_selectedTab);
         *      ActivateControls(key);
         *  }
         *  m_selectedTab = key;
         * }
         */

        public MyGuiControlSimpleTabControl GetTabSubControl(int key)
        {
            if (!m_tabs.ContainsKey(key))
            {
                //m_tabs[key] = new MyGuiControlSimpleTabControl(m_parent, new Vector2(0, m_headSize.Y), new Vector2(1, 1 - m_headSize.Y), m_color);
                m_tabs[key] = new MyGuiControlSimpleTabControl(this, new Vector2(0, m_headSize.Y), new Vector2(1, 1 - m_headSize.Y), m_color);
                Controls.Add(m_tabs[key]);
            }
            return(m_tabs[key]);
        }
コード例 #2
0
        /*
        public void SelectTab(int key)
        {
            if (m_selectedTab != key)
            {
                DeactivateControls(m_selectedTab);
                ActivateControls(key);
            }
            m_selectedTab = key;
        }
        */

        public MyGuiControlSimpleTabControl GetTabSubControl(int key)
        {
            if (!m_tabs.ContainsKey(key))
            {
                //m_tabs[key] = new MyGuiControlSimpleTabControl(m_parent, new Vector2(0, m_headSize.Y), new Vector2(1, 1 - m_headSize.Y), m_color);
                m_tabs[key] = new MyGuiControlSimpleTabControl(this, new Vector2(0, m_headSize.Y), new Vector2(1, 1 - m_headSize.Y), m_color);
                Controls.Add(m_tabs[key]);
            }
            return m_tabs[key];
        }