Author Topic: UITextList Scrollbar  (Read 4575 times)

Bartleby

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
UITextList Scrollbar
« on: December 17, 2012, 08:51:36 PM »
Is there an easy way to add a scrollbar to a UITextList? It would be nice to have that functionality to go with the scroll wheel. Or is it going to require creating a UIDraggablePanel, putting a text list on that, and then scrolling the panel rather than the text list directly?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UITextList Scrollbar
« Reply #1 on: December 18, 2012, 07:00:17 AM »
I don't advise using the text list. Just add labels to a table or grid dynamically. If this table/grid is within a clipped panel, and the panel has a scroll bar, then you will be able to drag it around. The text list is just a crude base example, not the rule. :)

Bartleby

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: UITextList Scrollbar
« Reply #2 on: December 20, 2012, 01:02:09 PM »
Heh, alrighty. Sounds like a plan. Thanks for the feedback!

alics

  • Guest
Re: UITextList Scrollbar
« Reply #3 on: March 01, 2013, 11:43:18 AM »
Can you elaborate on the table idea? It seems to be what I need in my project. I was trying to get UITextList to behave like the chat window example but like you mentioned it is not a good idea.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UITextList Scrollbar
« Reply #4 on: March 01, 2013, 09:02:59 PM »
Adding labels to a 1-column table will stack them on top of each other giving you the effect you desire.

galuodo

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 65
    • View Profile
Re: UITextList Scrollbar
« Reply #5 on: March 02, 2013, 12:26:09 AM »
scrollbar has it's delegate