07-17-2017 08:29 PM
Hello, I have a listbox that will vary in length and next to the listbox is an array of buttons with each button corresponding to one row in the listbox. Since they will both vary in length, is there a way to somehow add a scroll bar that will encompass both the listbox and the array of buttons? Since I want them to be confined to a certain size, yet have unrestricted length since they can very. Here is a picture of what I am describing.
Any help would be appreciated, thanks!
07-18-2017 12:45 AM
One way do this is to add a scroll bar to the listbox, then check if the top row (TopLeft -> Row)
has changed on a mouse move (possible scroll) or mouse down (possible scroll button) event.
Update the Array position (Index values) if a change occurs.
See attached snippet.