Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Bartleby on December 17, 2012, 08:51:36 PM

Title: UITextList Scrollbar
Post by: Bartleby 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?
Title: Re: UITextList Scrollbar
Post by: ArenMook 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. :)
Title: Re: UITextList Scrollbar
Post by: Bartleby on December 20, 2012, 01:02:09 PM
Heh, alrighty. Sounds like a plan. Thanks for the feedback!
Title: Re: UITextList Scrollbar
Post by: alics 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.
Title: Re: UITextList Scrollbar
Post by: ArenMook 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.
Title: Re: UITextList Scrollbar
Post by: galuodo on March 02, 2013, 12:26:09 AM
scrollbar has it's delegate