Search Locate Previous Next Contents

nlSet – set any properties

In NewLeaf you have two equivalent ways of setting any property. You can call nlSet 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 Property Reference for details.

nlSet ('font' 'ti,12')('sp' 0 18)
nlFont 'ti,12' ª nlSpacing 0 18

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 nlQuery with a vector of property names.

The properties are all held in nl‘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: nlSkipToPage – reset page number
© Copyright Causeway Graphical Systems Ltd 2001