ASCII scrollable list with mouse
#5
Hi
I'm very glad to have your feedbacks and your attention:

my actual demo does only this:
it shows starting from toplef corner of the screen the 16 items of a list that it has been before initializating  with a for loop.
As output you can see the 16 items and an ASCII vertical scroll bar on the right of the list of items.
The selected item has an highlight set of colors (backgorund and Foreground) versus the other items that uses default setting of colors.
If you do a click on the verticalbar over o lower than selected item you shift selection of item towards the first or the last item of the list showed, when you go through this limit, the list scrolls up or down relating your mouse input.
If you click on the verticalbar at level of selected  item (scrollbar has a thicker ASCII symbol) you got a shifting of selection of item by 1 step up or down regarding the movement done with the mouse after pressing Left click on it.


@Bplus
no this demo does nothing than showing 16 items of a list as a scrollable list with its vertical bar on the right.
Only mouse support for changing the selection of item or for scrolling the list.

No mousewheel, No Keyboard support, No drag&Drop of selection along the verticalbar.
No returning the select oitem.
Yes it was better to show a more complete demo and not a beginner demo.
It will come soon.

ASCII table of IDE made by Fellippe is a table with a mobile selection of one item.
I am not able to see the vertical scroll bar.


@SMcNeill
yes a fine minimal scrollbar without highligting  selected item.
It responds only to keyboard  input Up/Down

@Pete
thanks for your demo that is more complete, it only doesn't highlight  the selected row of text 
and also it doesn't return the item selected....


Well I thank you so much,
now I must find the time to do the expansion of the ASCII scroll bar.
Reply


Messages In This Thread
RE: ASCII scrollable list with mouse - by bplus - 10-23-2022, 11:50 AM
RE: ASCII scrollable list with mouse - by Pete - 10-23-2022, 02:54 PM
RE: ASCII scrollable list with mouse - by TempodiBasic - 10-24-2022, 12:42 AM



Users browsing this thread: 3 Guest(s)