CoCoA:Option

From ApCoCoAWiki
Revision as of 10:02, 24 October 2007 by XMLBot (talk | contribs) (pushing XML rev. 1.46, again)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Option

status of a panel option

Description

This function returns the status of a panel option (TRUE/FALSE). For

a list of panels, use <ttref>Panels</ttref> and for the current status of each

option for a panel with name P, use Panel(P). To toggle option values, use <ttref>Set-Unset</ttref>. The function <ttref>Option</ttref> is particularly useful inside a user-defined function in order to temporarily change the value of an option (restoring the option's original value when the function is complete). See Setting Options for an example of this use of <ttref>Option</ttref>.

Example

  Option(Indentation);
FALSE
-------------------------------

Syntax

Option(O):BOOL

where O is a panel option.

Introduction to Panels

Panel

Panels

Setting Options

Unset

   <type>panels</type>
   <type>system</type>