Hello Guest

Author Topic: List of scrolling items?  (Read 5501 times)

bacon

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 3
    • View Profile
List of scrolling items?
« on: August 22, 2012, 03:23:35 am »
How do you make a list of scrolling items?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: List of scrolling items?
« Reply #1 on: August 22, 2012, 06:54:23 am »
There isn't a built in component to do this - 2D Toolkit is a 2D plugin and the GUI support is basic, but you can build it yourself. Here is a really simple way to do super-efficient clipping for a scrolling list: http://unikronsoftware.com/2dtoolkit/forum/index.php/topic,539.0.html

Its in the private support area, so you'll need to register to get it.

praveee

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: List of scrolling items?
« Reply #2 on: February 02, 2014, 02:09:00 pm »
Hey, how can i find the Clicked item on the Scroll List.  (something like get the index of the selected list item)

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: List of scrolling items?
« Reply #3 on: February 03, 2014, 11:51:22 am »
You handle the messages on these items as you create them. The scrollable area doesn't know about what is in it, so once you get the clicked message you can work out what index it is in your list using the tk2dUIItem reference that gets passed in.