Auto-scrolling listbox

Post Reply
User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Auto-scrolling listbox

Post 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:
Attachments
Screenshot (92).png
Screenshot (92).png (114.09 KiB) Viewed 1434 times
The only thing that gets me down is gravity...

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Auto-scrolling listbox

Post by Mr. Kibernetik »

Yes, these buttons look professional.

Thank you for the suggestion!

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Auto-scrolling listbox

Post 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.

Post Reply