This project is read-only.

Autocomplete weird problem

Jan 28, 2012 at 10:21 PM

I create a custom parser to detect diferent types, and vars and it works fine, but the problem comes when i use use this lists with the autocomplete list. The first time the autocomplete box comes out ( 'Autocomplete.Show()' ) it works properly, but then it just don't come out anymore. It looks like the autocomplete box works fine just for the first time.

 

Autocomplete config:

With .AutoComplete
    .AutoHide = True
    .SingleLineAccept = True
    .IsCaseSensitive = True
    .DropRestOfWord = True
End With

Autocomplete showing code:

With Scintilla.AutoComplete
    For Each d In Listt
        .List.Add(d)
    Next
    If Listt.Count = 1 Then .List.Add("")
    .Show()
End With

Does someone have any idea how to fix this?

Jan 30, 2012 at 8:17 AM

SOLVED

actualy i think this should not happend but i'll explain:

For some items i did use "AutoComplete.List = (An other list object)"

for some reason when i did use AutoComplete.Clear() the list i did asign to the AutoComplete.List property got cleared too, so the next time i use

"AutoComplete.List = (An other list object)" (An other list object) was empty causing no List to be showed.

 

Hope this may help someone with the same problem.