Controlling Table Rows and Columns

From HLKitWiki
Revision as of 21:06, 19 November 2008 by Rob (Talk | contribs)

Jump to: navigation, search

[Context: HL KitBasic Concepts and TerminologyManipulation of Visual ElementsWorking With Tables]

Multi-Column Tables

Most tables will possess a single column and display as many rows as possible in the space available to them. However, there will be times when you'll want to use tables with multiple columns. For example, if the items being displayed don't need a lot of horizontal space, it may be much better to display them in two or three columns. In the Savage Worlds data files, both Rewards and Resources are perfect candidates for two-column tables.

You can pre-define a table to have multiple columns by setting the "columns" attribute on the table. When a table has multiple columns, the items are sorted so that they increase going downward in the first column, then continue at the top of the second column and increase going downward, then continue at the top of the third column, etc.

Dynamic Control of Rows and Columns

You can also control the number of rows and columns possessed by a table dynamically from with a Position script. This can be extremely useful when trying to fit multiple tables into a limit space. Whatever you dictate first

maxrows and maxcolumns via scripts