Frequently Asked Questions
Making the drop-down list appear faster
Question:
How do I get the drop-down list (pick list) to appear faster?
I don't want to have to click 4 times every single time.
Answer:
In your OnCellClick event handler for your TDBGrid, do this:
keybd_event(VK_F2,0,0,0);
keybd_event(VK_F2,0,KEYEVENTF_KEYUP,0);
keybd_event(VK_MENU,0,0,0);
keybd_event(VK_DOWN,0,0,0);
keybd_event(VK_DOWN,0,KEYEVENTF_KEYUP,0);
keybd_event(VK_MENU,0,KEYEVENTF_KEYUP,0);
This is the same as pressing F2 followed by Alt+DownArrow.