ProtectedColor (Screen property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
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”).
{{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”).


   %screen:ProtectedColor = fieldcolor
   %screen:ProtectedColor = fieldcolor
Line 12: Line 14:
: A reference to an instance of a Screen object.
: A reference to an instance of a Screen object.


====Examples====
==Examples==


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


  Print %scr:protectedColor:ToString
  Print %scr:protectedColor:ToString
==See also==
{{Template:Screen:ProtectedColor footer}}

Revision as of 16:58, 16 February 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 (“Color property”).

  %screen:ProtectedColor = fieldcolor
  fieldcolor = %screen:ProtectedColor
ProtectedColor syntax
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