Subscribe Bookmark RSS Feed

Scroll command for UI Listbox?

ahutson22

Community Trekker

Joined:

Apr 10, 2015

I have a listbox that I would like to keep in chronological order, but the most recent items will also be the most likely to be used.  Is there a command that can auto-scroll the listbox to the bottom of the list?

3 REPLIES
msharp

Super User

Joined:

Jul 28, 2015

Yes,

listbox << Set Scroll Position( pos );

pos will generally take the form - {0,0} - where the first digit is the horizontal position (typically 0), and the second digit is the vertical scroll position

But I think a Reverse Into(); or Reverse(); would be sexier.  This reverses the order of the list, so the most recent items would be at the top, no need to scroll to the bottom.

ian_jmp

Staff

Joined:

Jun 23, 2011

Looks like the 'setScrollPosition' message is for a 'ScrollBox()' rather than a 'ListBox()'.

msharp

Super User

Joined:

Jul 28, 2015

It doesn't apply?  How embarrassing ; guess there isn't a way to scroll a list box.