Simon Sweetman
Member
I have a fill-in field that I need to prompt for a filename in and I want to use the windows filename auto complete (like the Win2K file-open dialog). I have read about SHAutoComplete from SHLWAPI.DLL and this appears to be what I need:
I called it from local-initialize like so:
The auto complete works, when I arrow through the list of matching items and select something it fills out the screen-value fine, but if I then continue to type the screen value is replaced with spaces for everything that wasn't typed.
It looks like progress keeps an internal representation of the screen value of widgets apart from the actual screen buffer. Has anyone got any suggestions on how this can be made to work?
Code:
procedure SHAutoComplete external "shlwapi.dll":
def input parameter hwndEdit as long.
def input parameter dwFlags as long.
end procedure.
Code:
run SHAutoComplete(lc_myedit:hwnd, 1).
The auto complete works, when I arrow through the list of matching items and select something it fills out the screen-value fine, but if I then continue to type the screen value is replaced with spaces for everything that wasn't typed.
It looks like progress keeps an internal representation of the screen value of widgets apart from the actual screen buffer. Has anyone got any suggestions on how this can be made to work?