ProtectedColor (Screen property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
mNo edit summary
Line 2: Line 2:


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==
  %screen:ProtectedColor = fieldcolor
===Syntax terms===
  fieldcolor = %screen:ProtectedColor
<dd>
 
<dt>fieldcolor  
; <font size='3'>ProtectedColor syntax</font>
<dd>A Fieldcolor enumeration. Valid values (case unimportant) are turquoise, green, blue, red, white, yellow, and pink. The default value is blue.
 
<dt>%screen  
; fieldcolor  
<dd>A reference to an instance of a Screen object.
: A Fieldcolor enumeration. Valid values (case unimportant) are turquoise, green, blue, red, white, yellow, and pink. The default value is blue.
</dl>
 
; %screen  
: A reference to an instance of a Screen object.
 
==Examples==
==Examples==



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

Syntax

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