Exemplo n.º 1
0
        internal TabStrip()
        {
            var xbox = new HBox();

            Add(xbox);

            vBox = new TabStripVBox()
            {
                TabStrip = this
            };
            hBox = new TabStripHBox()
            {
                TabStrip = this
            };
            box = hBox;

            xbox.PackStart(hBox as Widget, false, false, 0);
            xbox.PackStart(vBox as Widget, false, false, 0);

            ShowAll();
            vBox.Hide();
            bottomFiller.Hide();
            BottomPadding = 3;
            WidthRequest  = 0;

            box.TabRemoved += HandleRemoved;
        }
Exemplo n.º 2
0
        public TabStrip(DockFrame frame)
        {
            xbox = new HBox();
             Add(xbox);

             vBox = new TabStripVBox() { TabStrip = this };
             hBox = new TabStripHBox() { TabStrip = this };

             box = hBox;

             xbox.PackStart(hBox, false, false, 0);
             xbox.PackStart(vBox, false, false, 0);

             ShowAll();
             vBox.Hide();
             bottomFiller.Hide();
             BottomPadding = 3;
             WidthRequest = 0;

             box.Removed += HandleRemoved;
        }