Exemplo n.º 1
0
        /// <summary>
        /// Constructor</summary>
        public ConsoleTextBox()
        {
            Font = new Font("Lucida Console", 8F, FontStyle.Regular, GraphicsUnit.Point, 0);
            MaxLength = 0; // allow max character
            Multiline = true;
            ScrollBars = ScrollBars.Vertical;
            ShortcutsEnabled = true;
            WordWrap = true;

            m_suggestionListBox = new SuggestionListBox
            {
                InsertText = InsertTextAtCaret,
                ItemHeight = 11,
                RemoveText = RemoveTextBeforeCaret,
                Suggest = Suggest
            };
            m_suggestionListBox.Hide();

            Controls.Add(m_suggestionListBox);

            WritePrompt();
            m_commandHandler = DefaultCommandHandler;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Constructor</summary>
        public ConsoleTextBox()
        {
            Font                = new Font("Lucida Console", 8F, FontStyle.Regular, GraphicsUnit.Point, 0);
            MaxLength           = 0; // allow max character
            Multiline           = true;
            ScrollBars          = ScrollBars.Vertical;
            ShortcutsEnabled    = true;
            WordWrap            = true;
            BorderStyle         = BorderStyle.None;
            m_suggestionListBox = new SuggestionListBox
            {
                InsertText = InsertTextAtCaret,
                ItemHeight = 11,
                RemoveText = RemoveTextBeforeCaret,
                Suggest    = Suggest
            };
            m_suggestionListBox.Hide();

            Controls.Add(m_suggestionListBox);

            WritePrompt();
            m_commandHandler = DefaultCommandHandler;
        }