Basic table list

Hi all

I’ve been away from Corona a little while and I’m trying to create a basic table list but it will only ever hold 8 rows so I do not need or want it to scroll. But I do want to be able to select and highlight the rows like tableView allows etc. I just want it to remain static.

Is there a simple way of doing this that I’ve forgotten?

Thanks in advance…

Tim [import]uid: 131622 topic_id: 29860 reply_id: 329860[/import]

Do you mean a table list as is produced using tableView? The point of that is that you get a scrolling container of multiple groups. It sounds like what you want is simply a collection of buttons. Using a functionally limited tableView souns like overkill. [import]uid: 8271 topic_id: 29860 reply_id: 119730[/import]

That’s perfect horacebury, just what I wanted to hear. I was thinking of doing a collection of buttons but thought it was somehow TOO basic (for want of a better word), and wondered if there was a “smarter” way. seems I was making it more difficult than needed.

The quantity of rows will always stay the same, only the items in the list will change at random (like a shops stock levels, it has set number of shelves but the items on them can change), just wanted to clarify the best way to create the table/list itself.

Thanks for taking time to help, it’s much appreciated and reassuring to know a Pro would take that route too.

Big thanks! [import]uid: 131622 topic_id: 29860 reply_id: 119738[/import]

For whatever reason, Corona hasn’t correctly updated the documentation for the TableViews in their new doc system, but you can find the older better complete documentation here:

http://developer.coronalabs.com/node/11923

You can use tableview.isLocked to keep the tableview from scrolling

[import]uid: 122310 topic_id: 29860 reply_id: 119748[/import]

Great, ok that would be pretty cool. I figured if I just called table view in first instance it might be quicker than having to write code for buttons. I’ll have a look at that too then, but at least I can do a work around at very least.

Thanks loads for the link it will be most useful! [import]uid: 131622 topic_id: 29860 reply_id: 119753[/import]

Do you mean a table list as is produced using tableView? The point of that is that you get a scrolling container of multiple groups. It sounds like what you want is simply a collection of buttons. Using a functionally limited tableView souns like overkill. [import]uid: 8271 topic_id: 29860 reply_id: 119730[/import]

That’s perfect horacebury, just what I wanted to hear. I was thinking of doing a collection of buttons but thought it was somehow TOO basic (for want of a better word), and wondered if there was a “smarter” way. seems I was making it more difficult than needed.

The quantity of rows will always stay the same, only the items in the list will change at random (like a shops stock levels, it has set number of shelves but the items on them can change), just wanted to clarify the best way to create the table/list itself.

Thanks for taking time to help, it’s much appreciated and reassuring to know a Pro would take that route too.

Big thanks! [import]uid: 131622 topic_id: 29860 reply_id: 119738[/import]

For whatever reason, Corona hasn’t correctly updated the documentation for the TableViews in their new doc system, but you can find the older better complete documentation here:

http://developer.coronalabs.com/node/11923

You can use tableview.isLocked to keep the tableview from scrolling

[import]uid: 122310 topic_id: 29860 reply_id: 119748[/import]

Great, ok that would be pretty cool. I figured if I just called table view in first instance it might be quicker than having to write code for buttons. I’ll have a look at that too then, but at least I can do a work around at very least.

Thanks loads for the link it will be most useful! [import]uid: 131622 topic_id: 29860 reply_id: 119753[/import]