public TabContainer CreateTab(string Name)
        {
            TabContainer tc = new TabContainer(this);

            tc.SetPosition(0, HeaderHeight);
            tc.SetVisible(false);
            tc.SetSize(this.Size.Width, this.Size.Height - HeaderHeight);
            this.Tabs.Add(tc);
            this.Names.Add(Name);
            return(tc);
        }
Exemple #2
0
        public TabContainer CreateTab(string Name)
        {
            TabContainer tc = new TabContainer(this);

            tc.SetPosition(0, HeaderHeight + 4);
            tc.SetVisible(false);
            tc.SetSize(this.Size.Width, this.Size.Height - HeaderHeight - 4);
            Font f = Font.Get("Fonts/Ubuntu-B", 15);
            int  w = f.TextSize(Name).Width + 8;

            if (w > HeaderWidth)
            {
                SetHeader(w, HeaderHeight, TextY);
            }
            this.Tabs.Add(tc);
            this.Names.Add(Name);
            return(tc);
        }