On 12 January 2017 at 08:40, Charly Dante <
dante...@gmail.com> wrote:
> Hi,
>
> I really would like to have the feature that while typing code, the
> autocomplete list dynamically shrinks to only list matching keywords.
An alternative, which Geany uses, is to move the selection as you type
to always select the first match to the typed prefix.
>
> Unfortunatly it seems that this feature isn't inbuilt into Scintilla? If the
> autocomplete list string is updated using a second call with SCI_AUTOCSHOW,
> the current list closes and reopens instead of shrinking which causes
> flickering of the list.
>
> Question: Wouldn't it be a reasonable approach just define a new Scintilla
> message to update the autocomplete list string? On the message, Scintilla
> would just call ac.SetList((const char *)(lParam));
>
> After a first try this seems to work. However, I worry that this might
> introduce problems... can someone maybe comment whether this approach is
> reasonable or if it might crash Scintilla at some point?
>
> Best
> CD
>
> --
> You received this message because you are subscribed to the Google Groups
> "scintilla-interest" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
scintilla-inter...@googlegroups.com.
> To post to this group, send email to
scintilla...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/scintilla-interest.
> For more options, visit
https://groups.google.com/d/optout.