Author Topic: Best approach for scrollable popup list  (Read 1723 times)

indiefreaks

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 27
    • View Profile
Best approach for scrollable popup list
« on: February 13, 2013, 09:57:22 AM »
Hi,

I'm looking for advices on the approach I should take to create a popup list that would display its items using a scrollable panel.

I'm trying to create a date control composed of 3 Popup lists that would ease setting the date (one for days, months and years) but as you'd probably guess, the 31 days popup list is way too big to be displayed in the screen (unless I scale down the items text but that's not a desirable solution).

Seems like my only option would be to tweak UIPopupList code to create a panel as a child in which all items would reside and implement it so that it clips its boundaries and display a scollbar if the total items height gets bigger than its own height.

Am I right or is there an easier approach that I wouldn't have thought of?

Thanks

Philippe

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Best approach for scrollable popup list
« Reply #1 on: February 13, 2013, 01:41:02 PM »
Don't tweak the UIPopupList. Create a new class for this. And yes, you are on the right path.