Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to make DBLookupComboBox mouse wheel work

How to use the mouse wheel to move between listed items in the DBLookupComboBox? Like the way it does in ComboBox.

I am using c++builder xe6

like image 315
nashwa Avatar asked Mar 31 '15 15:03

nashwa


1 Answers

I found it for every one suffered the answer is simple

in FormMouseWheelDown event write this down

if (DBLookupComboBox1->Focused() == true) DBLookupComboBox1->Perform(WM_KEYDOWN, VK_DOWN, 0);

and in FormMouseWheelUp write

if (DBLookupComboBox1->Focused() == true) DBLookupComboBox1->Perform(WM_KEYDOWN, VK_UP, 0);

that is it .. enjoy

like image 68
nashwa Avatar answered Oct 11 '22 05:10

nashwa