Choose Language Hide Translation Bar
ahutson22
Community Trekker

Scroll command for UI Listbox?

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?

0 Kudos
3 REPLIES 3
Highlighted
msharp
Super User

Re: Scroll command for UI Listbox?

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.

0 Kudos
Highlighted
ian_jmp
Staff

Re: Scroll command for UI Listbox?

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

0 Kudos
Highlighted
msharp
Super User

Re: Scroll command for UI Listbox?

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

0 Kudos