how to make DBLookupComboBox mouse wheel work
Asked Answered
M

1

6

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

Maggiore answered 31/3, 2015 at 15:14 Comment(0)
M
6

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

Maggiore answered 14/4, 2015 at 21:11 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.