I found it, I had to use AutoCShow with the number of letters already typed
to get it to select the entries as I type.

However, there is no such option for user lists SCI_USERLISTSHOW as the
wParam is used to denote the list type, so I have added this to my build as
follows if anyone is interested or if it can get committed (Neil?). I
created a new message for compatability (wording might be better):

Add to Scintilla.h
#define SCI_USERLISTSHOWTYPED 4011

struct UserListShowInfo {
        long nCharsTyped;
        int nListType;
};


Add to ScintillaBase.cxx

        case SCI_USERLISTSHOWTYPED: {
                if (wParam == 0)
                        return 0;

                UserListShowInfo *ul = reinterpret_cast<UserListShowInfo
*>(wParam);
                listType = ul->nListType;

                AutoCompleteStart(ul->nCharsTyped, reinterpret_cast<const
char *>(lParam));
                break;
        }



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dan Petitt
Sent: 02 January 2006 12:47
To: 'Discussion of the Scintilla editing component'
Subject: [scintilla] Question regarding AutoComplete item selection

I have created an AutoText type entry that on typing a couple of letters a
list popups with a list of possible text inserts.

If you carry on typing, it should select the appropriate item in the list
according to what is typed, but it doesn't appear to work.

Even if I use SCI_AUTOCSELECT to select the entry, it still doesn't select
it which is odd.

I have set case sensitivity to off and auto hide to off on the lists.

Any ideas?


_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest


_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to