Example #1
0
        // no cursor..
        // Since splitter is used as the primary history window, we need to be more careful due to this being used as the primary cursor
        // so we by design don't have a cursor at Init on any UCCB.  So we must create everything here for the primary, then we have a cursor, and
        // then load layout can finish the job

        public override void Init()
        {
            TabListSortAlpha = EDDConfig.Instance.SortPanelsByName; // held constant, because we store in each tab splitter the implicit order, can't change it half way thru

            string defaultview = "H(0.50, U'0,-1', U'1,-1')";       // default is a splitter without any selected panels

            string splitctrl = SQLiteConnectionUser.GetSettingString(DbWindows, defaultview);

            SuspendLayout();

            //try and make the configured splitter tree
            SplitContainer sp = ControlHelpersStaticFunc.SplitterTreeMakeFromCtrlString(new BaseUtils.StringParser(splitctrl), MakeSplitContainer, MakeNode, 0);

            if (sp == null)       // string is screwed, nothing was returned.  Lets set the default up
            {
                sp = ControlHelpersStaticFunc.SplitterTreeMakeFromCtrlString(new BaseUtils.StringParser(defaultview), MakeSplitContainer, MakeNode, 0);
            }

            panelPlayfield.Controls.Add(sp);

            ResumeLayout();

            BaseUtils.Translator.Instance.Translate(contextMenuStripSplitter, this);

            RunActionOnSplitterTree((p, c, uccb) =>
            {
                int tagid         = (int)c.Tag;
                int displaynumber = DisplayNumberOfSplitter(tagid);                         // tab strip - use tag to remember display id which helps us save context.
                System.Diagnostics.Trace.WriteLine("SP:Make UCCB " + uccb.GetType().Name + " tag " + tagid + " dno " + displaynumber);

                uccb.Init(discoveryform, displaynumber);
            });

            // contract states the PanelAndPopOuts OR the MajorTabControl will now theme and size it.
        }
Example #2
0
        // no cursor..
        // Since splitter is used as the primary history window, we need to be more careful due to this being used as the primary cursor
        // so we by design don't have a cursor at Init on any UCCB.  So we must create everything here for the primary, then we have a cursor, and
        // then load layout can finish the job

        public override void Init()
        {
            TabListSortAlpha = EDDConfig.Instance.SortPanelsByName; // held constant, because we store in each tab splitter the implicit order, can't change it half way thru

            string defaultview = "H(0.50, U'0,-1', U'1,-1')";       // default is a splitter without any selected panels

            string splitctrl = SQLiteConnectionUser.GetSettingString(DbWindows, defaultview);

            SuspendLayout();

            // try and make the configured splitter tree
            SplitContainer sp = ControlHelpersStaticFunc.SplitterTreeMakeFromCtrlString(new BaseUtils.StringParser(splitctrl), MakeSplitContainer, MakeNode, 0);

            if (sp == null)       // string is screwed, nothing was returned.  Lets set the default up
            {
                sp = ControlHelpersStaticFunc.SplitterTreeMakeFromCtrlString(new BaseUtils.StringParser(defaultview), MakeSplitContainer, MakeNode, 0);
            }

            panelPlayfield.Controls.Add(sp);

            //panelPlayfield.Controls[0].DumpTree(0);

            ResumeLayout();

            BaseUtils.Translator.Instance.Translate(contextMenuStripSplitter, this);
        }
        public TestSplitter()
        {
            theme = new ThemeList();
            theme.LoadBaseThemes();
            theme.SetThemeByName("Elite EuroCaps");
            Theme.Current.FontSize     = 8.25f;
            Theme.Current.WindowsFrame = true;

            InitializeComponent();

            string splitctrl = "H(0.50, U'0,-1', U'1,-1')";       // default is a splitter without any selected panels

            SplitContainer sp = ControlHelpersStaticFunc.SplitterTreeMakeFromCtrlString(new BaseUtils.StringParser(splitctrl), MakeSplitContainer, MakeNode, 0);

            tabPage1.Controls.Add(sp);

            //Theme.Current.ApplyStd(this);
        }
        // no cursor..
        // Since splitter is used as the primary history window, we need to be more careful due to this being used as the primary cursor
        // so we by design don't have a cursor at Init on any UCCB.  So we must create everything here for the primary, then we have a cursor, and
        // then load layout can finish the job

        public override void Init()
        {
            string defaultview = "H(0.50, U'0,-1', U'1,-1')";       // default is a splitter without any selected panels

            string splitctrl = SQLiteConnectionUser.GetSettingString(DbWindows, defaultview);

            SuspendLayout();

            // try and make the configured splitter tree
            SplitContainer sp = ControlHelpersStaticFunc.SplitterTreeMakeFromCtrlString(new BaseUtils.StringParser(splitctrl), MakeSplitContainer, MakeNode, 0);

            if (sp == null)       // string is screwed, nothing was returned.  Lets set the default up
            {
                sp = ControlHelpersStaticFunc.SplitterTreeMakeFromCtrlString(new BaseUtils.StringParser(defaultview), MakeSplitContainer, MakeNode, 0);
            }

            panelPlayfield.Controls.Add(sp);

            //panelPlayfield.Controls[0].DumpTree(0);

            ResumeLayout();
        }