I want to customize combobox dropdown list
Posted on 2001-08-23
I'm in the process of creating a DB aware component called TDBLookupEntry.
It is based on a TCustomPanel and contains a TEdit, TEdit and TSpeedButton so it looks like:
EDIT1 will be for a code and EDIT2 will be for a description so the user can enter either to find his record.
I currently have the Speedbutton dropping down a TForm with a TDBGrid with various techniques to keep setting the focus back to the form that contains the TDBLookupEntry but 1. the forms captions keeps flashing and 2. it doesn't set the focus back when the user uses the scrollbar on the TDBGrid and 3. you can move the form that contains the TDBLookupEntry and the dropdown form stays where it is.
After all the above said, I don't think its the way I want to go...I would much prefer to use the same method that the Internet Explorer 'address' combobox uses, ie. you can type a partial entry into the address, it drops down the list and you can cursor up/down, use the lists' scrollbar (and sizegrip) but the caret is still focused in the 'address' edit box and also when you click anywhere else it disappears.
Can any one point me in the right direction with tips/WinAPI.
Points awarded for best help...