Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7876577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:11:18+00:00 2026-06-03T03:11:18+00:00

I am currently creating an IDE using Scintilla for the Text component. But autocomplete

  • 0

I am currently creating an IDE using Scintilla for the Text component. But autocomplete has some problem I do’t get fixed.

I automatically show the proposal list after entering . after an object or class name.

Then I call the following:

int pos = _editor.NativeInterface.GetCurrentPos();
string word = _editor.GetWordFromPosition(pos - 1);
if (string.IsNullOrEmpty(word))
    return;
if (Objects.Keys.Contains(word))
{
    System.Reflection.MemberInfo[] memberInfos = Reflector.PublicMembersOf(Objects[word]);
    List<String> proposals = new List<string>();
    foreach (System.Reflection.MemberInfo mi in memberInfos)
    {
        string member = mi.ToString();
        if (Reflector.IsRealMethod(mi))
        proposals.Add(mi.ToString().Split(" ".ToCharArray(), 2)[1].Replace(" ", ""));
    }
    proposals.Sort();
    _editor.AutoComplete.Show(0, proposals);
}

Objects is a HashMap<String, Type> where all objects and there corresponding types are stored.

When I call the autocomplete the first time it works fine. But using it the second time just autocompletes the first element of proposals.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T03:11:20+00:00Added an answer on June 3, 2026 at 3:11 am

    I think that the problem it because you are trying to use open autocomplete after ‘.’ symbol. As you can notice autocomplete will be closed after you will type ‘.’ or ‘(‘ and select the current word as a result of autocomplete.
    I was needed to do the same thing: open autocomplete list after ‘.’ symbol. Solution is very simple you can open it after 10 milliseconds. For example use this code:

        private void scintillaCs_CharAdded(object sender, ScintillaNET.CharAddedEventArgs e)
        {
            ScintillaNET.Scintilla editor = sender as ScintillaNET.Scintilla;
    
            if (e.Ch == '.')
            {
                Timer t = new Timer();
    
                t.Interval = 10;
                t.Tag = editor;
                t.Tick += new EventHandler((obj, ev) =>
                {
                    // make a new autocomplete list if needed
                    List<string> s = new List<string>();
                    s.Add("test");
                    s.Add("test2");
                    s.Add("test3");
                    s.Sort(); // don't forget to sort it
    
                    editor.AutoComplete.ShowUserList(0, s);
    
                    t.Stop();
                    t.Enabled = false;
                    t.Dispose();
                });
                t.Start();
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

im currently creating a graph for an app, using coreplot and have a problem
I'm currently creating a visualization of some objects on my project and I'm using
I'm currently creating a web service that receives files(images) and some other data. The
I'm currently creating a website using Visual Studio 2010. I'm using the default membership
I'm currently creating an application for a customer that will allow them to automatically
I need to customize iReport sources.. (not creating plugin) Currently i am using iReport
Im currently creating a tile-based game for android. Using java via dalvik JVM. im
I'm currently creating an application using the MVC3 framework. I understand how to use
I am currently creating an application that has a user, the user can follow
I'm currently creating a web app using Google's oAuth. I was wondering how I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.