5 ex_gui_combobox_wheel_8c example
gullradriel edited this page 2026-10-09 00:51:57 +02:00

ex_gui_combobox_wheel.c

The mouse wheel scrolls an open combobox list (headless). An open combobox with more items than it shows has a scrollbar, and the wheel over its items has to move the list, as it does in every desktop toolkit. It used to step the highlight instead, one item a notch, and the list only moved once the highlight reached its edge; a pointer resting on an item put the highlight back under it, so the wheel ran over the visible items and the rest stayed out of reach. Reported from AfterAPro's plugin list: "working fine for what's visible but does not scroll".

Each check opens the list, turns the wheel with the pointer on one row and then clicks that same row: the item that click selects is the one the row shows, which says how far the list scrolled.