예제 #1
0
        public static void Init()
        {
            ConsoleDlg = new ConsoleDlg();

            GuiConsoleEditCtrl ConsoleEntry = new ConsoleEntry();

            ConsoleEntry.registerObject();
            ConsoleDlg.add(ConsoleEntry);

            GuiScrollCtrl scrollCtrl = new GuiScrollCtrl
            {
                InternalName = "Scroll",
                Profile      = Sim.FindObjectByName <GuiControlProfile>("ConsoleScrollProfile"),
                HorizSizing  = GuiHorizontalSizing.Width,
                VertSizing   = GuiVerticalSizing.Height,
                Position     = Point2I.Zero,
                Extent       = new Point2I(640, 462),
                MinExtent    = new Point2I(8, 8),
                Visible      = true,
                //TODO HelpTag = "0",
                WillFirstRespond    = true,
                HScrollBar          = GuiScrollBarBehavior.AlwaysOn,
                VScrollBar          = GuiScrollBarBehavior.AlwaysOn,
                LockHorizScroll     = false,
                LockVertScroll      = false,
                ConstantThumbHeight = false,
                ChildMargin         = new Point2I(0, 0)
            };
            GuiConsole ConsoleMessageLogView = new GuiConsole("ConsoleMessageLogView")
            {
                Profile  = Sim.FindObjectByName <GuiControlProfile>("GuiConsoleProfile"),
                Position = Point2I.Zero
            };

            ConsoleMessageLogView.registerObject();
            scrollCtrl.add(ConsoleMessageLogView);
            scrollCtrl.registerObject();
            ConsoleDlg.add(scrollCtrl);
            ConsoleDlg.registerObject();
        }