Author Topic: Text List auto scroll to newest message.  (Read 3847 times)

matt1

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 28
    • View Profile
Text List auto scroll to newest message.
« on: July 04, 2014, 04:15:29 PM »
Hi

I've been using the Text List to create a chatbox, similar to your example12.

my problem is, after I add a message it doesn't automatically scroll and show the new message, but your example does and I can't figure it out.

If i hit enter, the message gets added and i can only see it if I then click the chat box and scroll down. (kinda seems like it's upsidedown XD)

Many thanks

Matt

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Text List auto scroll to newest message.
« Reply #1 on: July 05, 2014, 09:43:25 PM »
Did you change the style to be "Chat"?

matt1

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 28
    • View Profile
Re: Text List auto scroll to newest message.
« Reply #2 on: July 11, 2014, 01:11:15 PM »
Thanks, can't beleive I missed that!

I've got another problem, I can't figure out how to link a scroll wheel to the textlist, I can't find a property that allows me to scroll the text up/down, only support mouse wheel.

The only way I can think of doing it would be:

Textlist.scrollValue = Scrollwheel.scrollValue;

Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Text List auto scroll to newest message.
« Reply #3 on: July 11, 2014, 09:02:00 PM »
UITextList.scrollValue

You can link it to the scroll bar's value via a PropertyBinding if you like.