Att RowHeights

new to Analytica 5.0

Attribute Att_RowHeights

The attribute Att_RowHeights stores the heights of any table rows that have been manually sized. When not manually sized, the height of table rows is determined by the cell content.

Initially, edit and result tables automatically select the height of rows based on the height of the content in the cells of that row. To change, hover over the boundary between two rows in the row header region, where the cursor changes to a up-down drag cursor, then hold the mouse down and drag to change the height of the preceding row. You can also select a range of rows and then drag any boundary to change the heights of all selected rows to be the same. To remove the manually configured height, enabling the row to again auto-size to the content, you can hover over the bottom row-header boundary (so that the cursor is a up-down drag cursor) and double click -- or select one or more rows and hover over any row-header boundary and double click to auto-size the selected rows.

The Att_RowHeights attribute is used internally by Analytica, and is not an attribute that Analytica users should read from or write to directly. This page documents the internal format used by this attribute.

Basic structure

The Att_RowHeights attribute holds a list that consists of one number (or blank) followed by n pairs, so that the total number of elements is always odd, 2*n+1, where n is the number of pairs. Each pair identifies an index and the widths along that index.

An example is show here

[,Time,\([,155]), In1,\([,42,59,,,32])]

In this example, the second row when Time is the row index is 155 pixels tall, with all other row heights autosized. When In1 is the row index, custom heights are specified for the second, third and sixth rows. When the index has only five elements, the sixth height is the height of the totals row.

The third, fifth, and subsequent odd elements are all references to lists of widths.

Rows whose height is blank are autosized. Internally, these blanks are the special system constant Undefined.

Local indexes

When the heights are specified along a local index, then the first element of each pair uses Sys_LocalIndex('name') as illustrated in this example:

[, Sys_LocalIndex('L1'), \([101,,,,80]) ]


When an index value changes, the list of widths corresponding to that index are automatically spliced.

When an index is used in a table's Att_RowHeights attribute, the index's Att_RowHeightsKids attribute contains the table identifier. This is automatically managed by Analytica, you cannot set Att_RowHeightsKids yourself.

When an index is deleted, it and its associated heights are automatically removed from all Att_RowHeights attributes that use it.

See Also


You are not allowed to post comments.