Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started 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?
-
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. :)
-
Heh, alrighty. Sounds like a plan. Thanks for the feedback!
-
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.
-
Adding labels to a 1-column table will stack them on top of each other giving you the effect you desire.
-
scrollbar has it's delegate