horizontal and verticle scrollbars

Hi,

I have tableview that has more data than fits on the window horizontally.

I would like to be able to scroll horizontally to see the rest of the data.

This looks like I have to insert the tableview into a newscrollview.

Which I have done, but still no horizontal scrollbar.

Is there something that I need to set specifically?

Thanks

Herb :wacko:

Hi Herb,

Can you please post the code you’re using to render the ScrollView (and/or TableView)?

Please surround the code with “lua” or “code” tags for clarity of display here in the forums:

[lua] -- [/lua]

Take care,

Brent

Hi Brent,

Thanks for the reply. 

Perhaps you can send me the imagesheet that is referenced in the documentation. 

https://docs.coronalabs.com/api/library/widget/newScrollView.html

This is looking for an imagesheet called scrollbar.png

If I had a working imagesheet, I may be able to troubleshoot on my side first.

Thanks.

Herb

You don’t need to provide graphics to construct a scrollbar.  That is there in case you want to override the default one.

Tbh, if you want scroll in both x and y then you need to abandon widgets and code your own solution.  Create your own “groups within a parent group” solution and use a touch event (on the parent group) to control the scrolling.

Thanks SGS.

I need to remind myself that his was a mobile first platform.

I think the slider widget can can act as a grid type scrollbar for me.

Thanks.

Herb

Hi Herb,

Can you please post the code you’re using to render the ScrollView (and/or TableView)?

Please surround the code with “lua” or “code” tags for clarity of display here in the forums:

[lua] -- [/lua]

Take care,

Brent

Hi Brent,

Thanks for the reply. 

Perhaps you can send me the imagesheet that is referenced in the documentation. 

https://docs.coronalabs.com/api/library/widget/newScrollView.html

This is looking for an imagesheet called scrollbar.png

If I had a working imagesheet, I may be able to troubleshoot on my side first.

Thanks.

Herb

You don’t need to provide graphics to construct a scrollbar.  That is there in case you want to override the default one.

Tbh, if you want scroll in both x and y then you need to abandon widgets and code your own solution.  Create your own “groups within a parent group” solution and use a touch event (on the parent group) to control the scrolling.

Thanks SGS.

I need to remind myself that his was a mobile first platform.

I think the slider widget can can act as a grid type scrollbar for me.

Thanks.

Herb