Table fields... oh boy.

Troy Rollins troy at rpsystems.net
Sun Aug 15 13:10:51 EDT 2004


On Aug 15, 2004, at 12:49 PM, J. Landman Gay wrote:

> Single-line data tables such as iTunes uses are easy to make. Just 
> trap the tabKey message and insert a return character if the insertion 
> point is in the last "cell". You can sort the field by column using 
> standard "sort" syntax ("sort field 1 by item 3 of each", etc.) You 
> can resize columns by resetting tabstops. I do this routinely. You can 
> even create a "header" field that allows the user to drag out the 
> columns to the widths they want, and when they release the mouse, set 
> your data grid to the same tabstops (there are several different ways 
> to implement the HIG for this.) Or resize the grid dynamically during 
> the header drag; Rev is fast enough to do it.

Thanks, Jacque. I plan to do some experimenting with this. It would be 
nice if there were a "built-in" tool for this, but where there isn't, 
you make your own, I guess.

I'll give it a go and see if I can get credible results.
--
Troy
RPSystems, Ltd.
http://www.rpsystems.net



More information about the use-livecode mailing list