UnprotectedColor (Screen property): Difference between revisions
Jump to navigation
Jump to search
m (match syntax table to syntax template; edits, tags and links) |
mNo edit summary |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Template:Screen:UnprotectedColor subtitle}} | {{Template:Screen:UnprotectedColor subtitle}} | ||
The <var>UnprotectedColor</var> property sets or gets the current default for the color of unprotected fields in a <var>Screen</var> object. An unprotected field is assigned this color unless another color value is explicitly specified in the <var>[[AddField_(Screen_function)|AddField]]</var> statement that defines the field. | The <var>UnprotectedColor</var> property sets or gets the current default for the color of unprotected fields in a <var>Screen</var> object. An unprotected field is assigned this color unless another color value is explicitly specified in the <var>[[AddField_(Screen_function)|AddField]]</var> statement that defines the field. | ||
==Syntax== | ==Syntax== | ||
{{Template:Screen:UnprotectedColor syntax}} | {{Template:Screen:UnprotectedColor syntax}} | ||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th | <tr><th>%currentFieldColor</th> | ||
<td>A <var>[[FieldColor_enumeration|Fieldcolor enumeration]]</var> to get the current default color for unprotected fields. Valid values (case unimportant) are <code>turquoise</code>, <code>green</code>, <code>blue</code>, <code>red</code>, <code>white</code>, <code>yellow</code>, and <code>pink</code>. The default is <code>green</code>. </td></tr> | <td>A <var>[[FieldColor_enumeration|Fieldcolor enumeration]]</var> to get the current default color for unprotected fields. Valid values (case unimportant) are <code>turquoise</code>, <code>green</code>, <code>blue</code>, <code>red</code>, <code>white</code>, <code>yellow</code>, and <code>pink</code>. The default is <code>green</code>. </td></tr> | ||
<tr><th | |||
<tr><th>screen</th> | |||
<td>A reference to an instance of a <var>Screen</var> object.</td></tr> | <td>A reference to an instance of a <var>Screen</var> object.</td></tr> | ||
<tr><th | |||
<td>A <var>Fieldcolor</var> enumeration setting the new default for a protected field's color. Valid values (case unimportant) are <code>turquoise</code>, <code>green</code>, <code>blue</code>, <code>red</code>, <code>white</code>, <code>yellow</code>, and <code>pink</code>. The default is <code>green</code>. </td></tr> | <tr><th>newFieldColor</th> | ||
<td>A <var>Fieldcolor</var> enumeration setting the new default for a protected field's color. Valid values (case unimportant) are <code>turquoise</code>, <code>green</code>, <code>blue</code>, <code>red</code>, <code>white</code>, <code>yellow</code>, and <code>pink</code>. The default is <code>green</code>.</td></tr> | |||
</table> | </table> | ||
==See also== | ==See also== | ||
<ul><li> | <ul> | ||
<li>A field's color can also be changed by the <var>[[Color_(ScreenField_property)|Color]]</var> method. | |||
<li>A protected field's color can be changed by the <var>[[ProtectedColor_(Screen_property)|ProtectedColor]]</var> method. | <li>A protected field's color can be changed by the <var>[[ProtectedColor_(Screen_property)|ProtectedColor]]</var> method. | ||
</ul> | </ul> | ||
{{Template:Screen:UnprotectedColor footer}} | {{Template:Screen:UnprotectedColor footer}} |
Latest revision as of 23:28, 16 November 2012
Set color for unprotected screen fields (Screen class)
The UnprotectedColor property sets or gets the current default for the color of unprotected fields in a Screen object. An unprotected field is assigned this color unless another color value is explicitly specified in the AddField statement that defines the field.
Syntax
%currentFieldColor = screen:UnprotectedColor screen:UnprotectedColor = newFieldColor
Syntax terms
%currentFieldColor | A Fieldcolor enumeration to get the current default color for unprotected fields. Valid values (case unimportant) are turquoise , green , blue , red , white , yellow , and pink . The default is green . |
---|---|
screen | A reference to an instance of a Screen object. |
newFieldColor | A Fieldcolor enumeration setting the new default for a protected field's color. Valid values (case unimportant) are turquoise , green , blue , red , white , yellow , and pink . The default is green . |
See also
- A field's color can also be changed by the Color method.
- A protected field's color can be changed by the ProtectedColor method.