A "listview" type module (editing tables)
Posted: Fri Dec 19, 2014 11:50 pm
Hi, I am looking at making an editable list of times that is more friendly then the edit module.
I got started doing it hybrid ruby and flowstone where a ruby hash provides values to each cell in the table using a wireless ruby connection. Each cell is just a modified label module. Each cell sends it position when it is lft clicked, wirelessly, which is the first step to incrementing/editing the value of that cell. This is where it got awkward, sending "position" wireless is additive. I worked around it by in the ruby code by sending 2 triggers
output 0, @position
output 0, nil
and filtering every other on the receiving side.
This seems like a very awkward way of doing a simple thing.
Generally I am interested in better ways to approach editing tables.
Maybe doing the whole table in a single chunk of ruby makes the most sense.
I am novice enough with ruby that I find that without line numbers for errors: development of long chunks of pure ruby UI is painful.
I attached the .fsm example
Any advice on this
Thanks,
Quentin
I got started doing it hybrid ruby and flowstone where a ruby hash provides values to each cell in the table using a wireless ruby connection. Each cell is just a modified label module. Each cell sends it position when it is lft clicked, wirelessly, which is the first step to incrementing/editing the value of that cell. This is where it got awkward, sending "position" wireless is additive. I worked around it by in the ruby code by sending 2 triggers
output 0, @position
output 0, nil
and filtering every other on the receiving side.
This seems like a very awkward way of doing a simple thing.
Generally I am interested in better ways to approach editing tables.
Maybe doing the whole table in a single chunk of ruby makes the most sense.
I am novice enough with ruby that I find that without line numbers for errors: development of long chunks of pure ruby UI is painful.
I attached the .fsm example
Any advice on this
Thanks,
Quentin