コード例 #1
0
        private void Init()
        {
            WordWrap                 = false;
            AcceptsTab               = true;
            Font                     = new Font("Tahoma", 9.5f);
            AutocompleteBox          = new ListBox();
            AutocompleteBox.Parent   = this;
            AutocompleteBox.KeyUp   += Autocomplete_OnKeyUp;
            AutocompleteBox.KeyDown += Autocomplete_OnKeyDown;
            AutocompleteBox.Visible  = false;
            ITSToolTip               = new ITSToolTip();
            this.commandDictionary   = Runtime.commandDictionary;

            ITSToolTip.RichTextBox = this;
            EventDescriptions      = new TooltipDictionary();
            ITSToolTip.Dictionary  = EventDescriptions;

            foreach (CommandInfo cd in Runtime.commandDictionary)
            {
                if (!String.IsNullOrEmpty(cd.EventDescription))
                {
                    EventDescriptions.Add(cd.Name, cd.EventDescription);
                }
            }
        }
コード例 #2
0
ファイル: ITSCodeBox.cs プロジェクト: soneek/Sm4sh-Tools
        private void Init()
        {
            WordWrap = false;
            AcceptsTab = true;
            Font = new Font("Tahoma", 9.5f);
            AutocompleteBox = new ListBox();
            AutocompleteBox.Parent = this;
            AutocompleteBox.KeyUp += Autocomplete_OnKeyUp;
            AutocompleteBox.KeyDown += Autocomplete_OnKeyDown;
            AutocompleteBox.Visible = false;
            ITSToolTip = new ITSToolTip();
            this.commandDictionary = Runtime.commandDictionary;

            ITSToolTip.RichTextBox = this;
            EventDescriptions = new TooltipDictionary();
            ITSToolTip.Dictionary = EventDescriptions;

            foreach (CommandInfo cd in Runtime.commandDictionary)
                if (!String.IsNullOrEmpty(cd.EventDescription))
                    EventDescriptions.Add(cd.Name, cd.EventDescription);
        }