10-07-2023, 11:10 PM
It WORKS!!!!
Okay, the scrollbar tab is green... but that was just me messing with the color code.
HOWEVER, the scrollbar buttons do cycle through the list properly, scrolling the scrollbar tab up and down. The scrollbar tab does adjust in size according to the size of the list, and can be dragged up and down to likewise properly scroll the list up and down. And yes, clicking on an item, despite the vertically adjusted placement in the window, does highlight and select the proper item!
There are things to touch up of course...
I have a dedicated class for all graphics. And the buttons for the new scrolling listbox does not use what I used in the previous scrollbar. So I either migrate these new buttons to that class, or see how to adapt the old ones to work.
I don't have an '@index' value set up. Based on the other listbox, it assumes you 'click' the desired data and it just takes it now. There's nothing as yet to define the index position at start... as in an assumed default data. So there's that to likewise accomplish.
And I need to ensure that clicking on the scrollbar doesn't interfere with any currently highlighted/selected data.
But with what I have accomplished, replacing the combobox (or dropdown list box) may be readily be made in much the same fashion.
But first... coding cleanup duty.
Okay, the scrollbar tab is green... but that was just me messing with the color code.
HOWEVER, the scrollbar buttons do cycle through the list properly, scrolling the scrollbar tab up and down. The scrollbar tab does adjust in size according to the size of the list, and can be dragged up and down to likewise properly scroll the list up and down. And yes, clicking on an item, despite the vertically adjusted placement in the window, does highlight and select the proper item!
There are things to touch up of course...
I have a dedicated class for all graphics. And the buttons for the new scrolling listbox does not use what I used in the previous scrollbar. So I either migrate these new buttons to that class, or see how to adapt the old ones to work.
I don't have an '@index' value set up. Based on the other listbox, it assumes you 'click' the desired data and it just takes it now. There's nothing as yet to define the index position at start... as in an assumed default data. So there's that to likewise accomplish.
And I need to ensure that clicking on the scrollbar doesn't interfere with any currently highlighted/selected data.
But with what I have accomplished, replacing the combobox (or dropdown list box) may be readily be made in much the same fashion.
But first... coding cleanup duty.