Auto-scrolling listbox
Posted: Fri Oct 06, 2017 4:20 am
I love the new listbox. One thing I would like to see is a parameter to make it scroll to the higlighted list entry when program control assigns a new value to the listbox's .index parameter. The attached image shows my next revision of Font View. A user can select fonts three different ways now:
1. by name, scrolling through the list alphabetically.
2. With the font name slider, to quickly browse through styles
3. With the Next and Prev buttons, to search fonts one-by-one for the style they want
It is likely overkill, but providing three ways to choose fonts gave me a challenge to code so that a change made by one method would update the other two. When I change fonts using the buttons or slider, the listbox does highlight the correct entry, but it does not scroll the entry into view if it is outside the list window. I scrolled it into view by hand for the screenshot to show how I think autoscrolling should work
I will post the code in Programs tomorrow. Hope you like the buttons.
1. by name, scrolling through the list alphabetically.
2. With the font name slider, to quickly browse through styles
3. With the Next and Prev buttons, to search fonts one-by-one for the style they want
It is likely overkill, but providing three ways to choose fonts gave me a challenge to code so that a change made by one method would update the other two. When I change fonts using the buttons or slider, the listbox does highlight the correct entry, but it does not scroll the entry into view if it is outside the list window. I scrolled it into view by hand for the screenshot to show how I think autoscrolling should work
I will post the code in Programs tomorrow. Hope you like the buttons.