I was getting an odd crash using an autocomplete list and the scintilla code
just didnt look quite right ... I am really not sure about this though as I
am sure it worked fine for me before...
In PlatWin.cxx
void ListBoxX::SetList(const char *list, char separator, char typesep)
Items are added into the list box thus...
int count = lti.Count();
::SendMessage(lb, LB_INITSTORAGE, count, 0);
for (int j=0; j<count; j++) {
::SendMessage(lb, LB_ADDSTRING, 0, j+1);
}
This would add just numeric items into the list which isnt right is it?
Anyway, this revised code seems to be the right way and works for me now...
::SendMessage(lb, LB_INITSTORAGE, count, 0);
for (int j=0; j<count; j++)
{
ListItemData ltid = lti.Get( j );
::SendMessage(lb, LB_ADDSTRING, 0, (LPARAM)(LPCTSTR)ltid.text );
}
I hope this helps,
Dan
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest