-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
horizontal scrollbar #147
Comments
Thank you! I am glad you like it. Listbox was created as simple as possible. As horizontal scroll is considered inconvenient even in GUI, I did not implement it in TUI. As of TextView, it has a feature that simplifies the code a lot: both scrollbars are always visible. I do not think it works good for Listbox. Ideally, Listbox horizontal scroll should be automatically hidden if its width is sufficient, or a horizontal scroll should be enabled manually. Though, it makes drawing function more complex. To add horizontal scrollbar to a Listbox here is the list of tasks:
Another and easier way (if you do not care much about mouse support): do not draw horizontal scrollbar at all. Just add two hotkeys to shift the content left/right. And fix |
hi, thanks for answer my question... |
You are welcome! At this moment I do not have |
hi, thanks for your project, i realy like it so much...
i have one question that how to enable horizontal scrolbar for long text item in listbox? if you dont mind, please add this fiture. thx
(i had take a look your code at "textview.go", it has scrolbar, but i dont know how to implement this to listbox)
The text was updated successfully, but these errors were encountered: