default Parameter

Sets a default value for a parameter in the Source view or the Editor window.

Scope: Global

Syntax

set default.{Parameter Options} 
query default.Parameter 

Option

Parameter 
The name of a parameter for which a default value can be assigned.
Options 
Options assigned as default to Parameter.

Description

Use the default parameter to assign a default value for the parameters listed below:

When the parameters listed above are set with the default option, the Editor attributes they normally control are instead controlled by the values stored in the default parameter. When a default parameter value is changed, file views and documents using the parameter specified by the default parameter option Name are updated accordingly. Changing the value of a default parameter option does not change the value of the parameter for which default values are set.

You can assign any valid option for a parameter as a default value, except the default option.

The default parameter by itself has no scope. Instead, its scope is determined by the parameter name specified as an option to the default parameter.

Default settings assigned by the default parameter are saved between editing sessions.

Examples

  1. To set the default value of the toolview parameter so both text and graphics show in the tool-bar buttons when the toolview parameter is set with the default option, type:
    set default.toolview both 
  2. To set the default value of the fontsize parameter so the 11 point System VIO font is used when the fontsize parameter is set with the default option, type:
    set default.fontsize 11 System VIO 
  3. To change the default value of the hoverhelp parameter from its current value of off to a new value of on, when the hoverhelp parameter is set with the default option, type one of the following:
    set default.hoverhelp on 
    set default.hoverhelp inverse 

API Return Codes

-2 
An invalid parameter option was specified.

commandline Parameter
fontsize Parameter
hoverhelp Parameter
messageline Parameter
prefixshow Parameter
ringselector Parameter
ruler Parameter
split Parameter
statusline Parameter
toolshow Parameter
toolview Parameter
wrap Parameter