How to do work with the DBLookupComboBox mouse wheel

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

I am using C ++ builder xe6

+4
source share
1 answer

I found it for every victim the answer is simple

in the FormMouseWheelDown event write this

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

and in FormMouseWheelUp write

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

that is .. enjoy

+3
source

All Articles