Page 1 of 1

Auto-scrolling listbox

Posted: Fri Oct 06, 2017 4:20 am
by rbytes
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. :ugeek:

Re: Auto-scrolling listbox

Posted: Fri Oct 06, 2017 12:50 pm
by Mr. Kibernetik
Yes, these buttons look professional.

Thank you for the suggestion!

Re: Auto-scrolling listbox

Posted: Fri Oct 06, 2017 2:05 pm
by Mr. Kibernetik
rbytes wrote:
Fri Oct 06, 2017 4:20 am
but it does not scroll the entry into view if it is outside the list window
This will be corrected in next version.