General information
Category:
Forms & Form designer
>Fabio,
>
>Thank you for your help! I justed re-tried deleting items from the auto-complete dropdown and it works like you described. I'm not sure why this didn't work for me before - perhaps I had my autocomplete table opened readonly in another VFP session?
>
>Per you comment about "Capture Autocomplete hwnd and control it with OS API", is this something that I could use Spy++ to look for and then do a Windows SendMessage() or PostMessage() call to have the dropdown's hwnd move and resize to a specific position, followed by a SendMessage() or PostMessage() to resize the dropdown itself? You're right, this seems complicated and I'm unclear whether such a solution would look ugly ... delay while timer detected dropdown, followed by move and resize of the autocomplete dropdown after this delay?
>
>Malcolm
You can use BINDEVENT(0,WM_NCCREATE,oWindowsMonitor,"WinMessage")
for catch when the AutoComplete window popup is created ( after AUTOCOMPLETE_ACCESS call );
when VFP bindmanager call WinMessage you have the AutoCompleteWindow.hwnd as hwnd parameter.
Not simple but VFP don't expose a global Constant like _AUTOCOMPLETE_HWND;
and it is not easy to avoid the C0005 crash.
I use something as this for implement a Combobox AfterDropDownClose,
but i'm not sure that it is 100% C0005 free.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only