I’m using two side by side listboxes to display a simple list of routings from one channel (left listbox “From”) to another (Right Listbox, “To”). The left listbox doesn’t let you do anything, all of the items are fixed in position. In practice, the UI looks like this:
This allows you to drag around the rows in the “To” listbox to change the mappings.
I want to set up the left listbox to scroll in sync with the right listbox, if that list is long enough to trigger scrolling. If Row 5 on the “To” box is at the top, row 5 on the From box needs to be at the top of its listbox as well, so that you can visually see what maps and so it reflects the actual current mapping.
Plenty of old examples come up in google searches but they’re referencing deprecated (or possibly hallucinated) code.
What is the best way to do this? MouseWheel is the only event I can find that’s close, but there’s a good chance I will be putting this app on a Raspberry Pi with a touch screen, so there is no mousewheel, just a scrollbar. Is there really not an event for movement of a listbox’s vertical scrollbar?
