Exemple #1
0
 public void PreLoadItemList()
 {
     AutoCompleteList.ApplyItemList(GetListItems());
     AutoCompleteList.Opacity = 0f;
     AutoCompleteList.Show();
     AutoCompleteList.Hide();
     AutoCompleteList.Opacity = 0.9f;
 }
Exemple #2
0
        private void UpdateItemList()
        {
            if (PopulateAutoCompleteList == null)
            {
                return;
            }

            AutoCompleteList.ApplyItemList(GetListItems());
        }
Exemple #3
0
        private void UpdateAutoCompleteList(ParseResult parseResult)
        {
            if (!AutoCompleteList.HasItems)
            {
                return;
            }

            var token            = parseResult.CurrentToken;
            int idxOfMatchingOne = FindBestMatchingItemIndex(token);

            AutoCompleteList.SelectIndex(idxOfMatchingOne);

            AutoCompleteList.UpperLeftCornerRelativeToToolTipParent = RelativeAutoCompleteListPos;
            AutoCompleteList.ShowAtPosition(AutoCompleteListPosition);
            SyntaxTextBox.Focus();
        }
Exemple #4
0
        private void UpdateAutoCompleteList(bool forceShow)
        {
            if (NeedCurrentParseResult == null)
            {
                return;
            }

            ParseResult parseResult = GetParseResults();

            UpdateItemList();

            bool isShowing = GetIsShowing(parseResult, forceShow);

            if (!isShowing)
            {
                AutoCompleteList.Hide();
                return;
            }

            UpdateAutoCompleteList(parseResult);
        }
Exemple #5
0
 private void CreateAutoCompleteList()
 {
     AutoCompleteList = new AutoCompleteList();
 }
Exemple #6
0
 private void keyHandler_CloseAutoCompleteList(object sender, EventArgs e)
 {
     AutoCompleteList.Hide();
 }
Exemple #7
0
 private void keyHandler_ChangeAutoCompleteItemIndex(object sender, SyntaxTextBoxKeyHandler.ChangeAutoCompleteItemIndexEventArgs e)
 {
     AutoCompleteList.ChangeAutoCompleteItemIndex(e.IndexDelta);
 }
Exemple #8
0
 private void SyntaxTextBox_MouseWheel(object sender, MouseEventArgs e)
 {
     AutoCompleteList.ChangeAutoCompleteItemIndex((e.Delta > 0 ? -1 : 1));
 }