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.
Auto-scrolling listbox
- 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:
- Contact:
Auto-scrolling listbox
- Attachments
-
- Screenshot (92).png (114.09 KiB) Viewed 1432 times
The only thing that gets me down is gravity...
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: Auto-scrolling listbox
Yes, these buttons look professional.
Thank you for the suggestion!
Thank you for the suggestion!
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag: