Главная страница | назад





Article #17962: Making the drop-down list appear faster

 Question and Answer Database
FAQ2962D.txt Making the drop-down list appear faster
Category :Database/VCL
Platform :All
Product :All 32 bit
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.
7/16/98 4:31:28 PM

Last Modified: 01-SEP-99