Set ListBox slider position?

BlitzMax Forums/MaxGUI Module/Set ListBox slider position?

Tachyon(Posted 2011) [#1]
I have a ListBox that can display up to 6 lines. New lines are added to the bottom of the list. Of course, when I add more than 6 lines, the slider appears to scroll through my list.

What I want to do is to always reset the slider to the bottom of the list every time I add an item, so that the user always sees new lines at the bottom. Older lines listed above, and if the user wants to see more than 6 lines in the past, they can scroll up.

How do I set the ListBox slider to always be down at the bottom of my list?


GfK(Posted 2011) [#2]
I don't have MaxGUI here to test, but I think you can do this with SelectGadgetItem (i.e. to select the last item in the listbox).


Tachyon(Posted 2011) [#3]
That worked perfectly! Thanks Gfk!! :-)