this refers to wxPropertyGrid 1.4.4 on wxMSW 2.8.9.
I've successfully added autocompletion to wxPGTextCtrlEditor by means of a new attribute "AutoComplete" of type wxArrayString.
Sorry for not providing a unified diff, but this is quite simple. Add the following near the end of wxPGTextCtrlEditor::CreateControls in editors.cpp:
wxVariant a = property->GetAttribute(wxT("AutoComplete"));
wxASSERT(a.GetType() == wxT("arrstring"));
It misses guards against wxUSE_OLE && (WINVER >= 0x0500) not being defined, though.
This assumes a patched wxTextCtrl supporting the AutoComplete method, as I've done on my wxMSW 2.8.9, backporting it from 2.9. I've sent the backport to email@example.com, please let me know if you need it too.
Hope this helps,
Log in to post a comment.