ProtectedColor (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 |
||
Line 2: | Line 2: | ||
The <var>ProtectedColor</var> property sets or gets the current default for the color of protected fields in a <var>Screen</var> object. A protected 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>ProtectedColor</var> property sets or gets the current default for the color of protected fields in a <var>Screen</var> object. A protected 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. | ||
An unprotected field's color can | An unprotected field's color can be changed by the <var>[[Color_(ScreenField_property)|Color]]</var> method. | ||
==Syntax== | ==Syntax== | ||
Line 22: | Line 22: | ||
==See also== | ==See also== | ||
<ul><li>An unprotected field's color can | <ul><li>An unprotected field's color can be changed by the <var>Color</var> method.</ul> | ||
{{Template:Screen:ProtectedColor footer}} | {{Template:Screen:ProtectedColor footer}} |
Revision as of 00:48, 26 June 2011
Set color for protected screen fields (Screen class)
The ProtectedColor 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.
An unprotected field's color can be changed by the Color method.
Syntax
%currentFieldColor = screen:ProtectedColor screen:ProtectedColor = newFieldColor
Syntax terms
currentFieldColor | A Fieldcolor enumeration to get the current default color for protected fields. 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. |
newFieldColor | A Fieldcolor enumeration to set the new protected field's color. Valid values (case unimportant) are turquoise , green , blue , red , white , yellow , and pink . The default value is blue . |
Examples
- The following statement prints the color of the %scr screen:
print %scr:protectedColor:ToString
See also
- An unprotected field's color can be changed by the Color method.