Jump to content




ScrollView - any good api?


  • You cannot reply to this topic
2 replies to this topic

#1 Hiran

  • Members
  • 44 posts

Posted 26 July 2015 - 07:31 PM

Im searching for api that will allow me to create scrollbars etc. Im working on RFTools Dialing Device, and i need either really big monitor to fit in there all my receivers or relatively small one, but with ability to scroll contents.

I know that oeed's Bedrock has that, but its documentation is like - "here is how you create buttons, labels and other simple stuff. Everything else figure on your own" and looking at the code didn't really help me that much.

Edited by Hiran, 26 July 2015 - 07:35 PM.


#2 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 26 July 2015 - 08:12 PM

There isn't a great way to do actual scroll bars, there's a lot of math involved.

I just do a paged system, I figure out how many 'items' each page can have (say you've got 15 lines for items to be displayed - that would be 15 per page), then how many pages there are ( math.ceil( totalItems/perPage ) )

The first page can display the first 15 items, the next page would have the next 15, and so on, until the last page has 15 or less items.

Edited by HPWebcamAble, 26 July 2015 - 08:13 PM.


#3 flaghacker

  • Members
  • 655 posts

Posted 26 July 2015 - 08:17 PM

Maybe this topic can get you started.

Edited by flaghacker, 26 July 2015 - 08:18 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users