Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP9: Customizing autocomplete dropdown ?
Message
From
11/04/2005 12:46:26
 
 
To
11/04/2005 11:41:53
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01003286
Message ID:
01003416
Views:
16
This message has been marked as a message which has helped to the initial question of the thread.
>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
Map
View

Click here to load this message in the networking platform