Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scroll button (middle button of the mouse) doesn't work with combobox. 1

Status
Not open for further replies.

Mandy_crw

Programmer
Jul 23, 2020
585
PH
Is there a way to make the middle button of the mouse (scroll) to work with combobox? Thanks and God bless.
 
Into the combobox.gotfocus put
Code:
ON KEY LABEL PGDN KEYBOARD '{DNARROW}'
ON KEY LABEL PGUP KEYBOARD '{UPARROW}'

Into combobox.lostfocus put
Code:
ON KEY LABEL PGDN
ON KEY LABEL PGUP

This might not do exactly what you want, but
1. If you use the mouse scroll wheel when the mouse points on the combo while it's still collapsed, you scroll through the items.
2. If you click on the expand down button and the list of items appears, but you keep the mouse in the combo area, you still can scroll through items.
But
3. If you move the mouse to the drop down list items are selected by mouseover and the scroll wheel has no effect.

While the dropdown list has a scrollbar you can't scroll through it with page up and page down. If your mouse driver allows you might configure what the mouse scroll wheel does and let it trigger both page and arrow keys.

Chriss
 
Hi Chris.... Thank you so much... its working!!!! Worked like charm......Thank and God bless.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top