ProtectedColor (Screen property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{Template:Screen:ProtectedColor subtitle}}
{{Template:Screen:ProtectedColor subtitle}}


This property sets or gets the current default for the color of protected fields in a Screen object. A protected field is assigned this color unless another color value is explicitly specified in the AddField statement that defines the field. A field's color can also be changed by the [[Screenfield class]] Color method (“Color property”).
This property sets or gets the current default for the color of protected fields in a Screen object. A protected field is assigned this color unless another color value is explicitly specified in the AddField statement that defines the field. A field's color can also be changed by the [[Screenfield class]] Color method (“Color property”).
==Syntax==
==Syntax==
{{Template:Screen:ProtectedColor syntax}}
{{Template:Screen:ProtectedColor syntax}}
===Syntax terms===
===Syntax terms===
<dl>
<table class="syntaxTable">
<dt>fieldcolor  
<tr><th>fieldcolor</th>
<dd>A Fieldcolor enumeration. Valid values (case unimportant) are turquoise, green, blue, red, white, yellow, and pink. The default value is blue.
<td>A Fieldcolor enumeration. Valid values (case unimportant) are turquoise, green, blue, red, white, yellow, and pink. The default value is blue. </td></tr>
<dt>%screen  
<tr><th>%screen</th>
<dd>A reference to an instance of a Screen object.
<td>A reference to an instance of a Screen object.</td></tr>
</dl>
</table>
==Examples==
==Examples==



Revision as of 19:44, 18 March 2011

Set color for protected screen fields (Screen class)


This property sets or gets the current default for the color of protected fields in a Screen object. A protected field is assigned this color unless another color value is explicitly specified in the AddField statement that defines the field. A field's color can also be changed by the Screenfield class Color method (&amp;#x201C;Color property&amp;#x201D;).

Syntax

%currentFieldColor = screen:ProtectedColor screen:ProtectedColor = newFieldColor

Syntax terms

fieldcolor A Fieldcolor enumeration. Valid values (case unimportant) are turquoise, green, blue, red, white, yellow, and pink. The default value is blue.
%screen A reference to an instance of a Screen object.

Examples

The following statement prints the color of the %scr screen:

Print %scr:protectedColor:ToString

See also