Search Locate Previous Next Contents

leaf.table.Set – setting table properties

In NewLeaf you have two equivalent ways of setting any table property. You can call leaf.table.Set with a short (case-independent) code for the property, or you can run a property-setting function directly. In this case you must get the function name exactly correct! See the Properties Reference for details.

leaf.table.Set ('ce' 72 72)('gr' 1 1 0)
leaf.table.CellWidths 72 72 ª leaf.table.GridLines 1 1 0

The two lines above are exactly equivalent; note that at least two characters are required to identify the property. To query the current value, you should use leaf.table.Query with a vector of property names.

The properties are all held in leaf.table.‘proplist, so to see a quick display of the available names, just type this variable to the APL session.

Whichever method you use, you will find that whenever you set a property you will be returned the previous value. This can be used to reverse a setting easily.



Continue to: leaf.table.Spread – spread matrix into a table
© Copyright Causeway Graphical Systems Ltd 2001