Color (ScreenField property): Difference between revisions
m (1 revision) |
m (1 revision) |
||
Line 5: | Line 5: | ||
{{Template:ScreenField:Color syntax}} | {{Template:ScreenField:Color syntax}} | ||
===Syntax terms=== | ===Syntax terms=== | ||
< | <table class="syntaxTable"> | ||
< | <tr><th>fieldcolor</th> | ||
< | <td>A FieldColor enumeration. Valid values (case unimportant) are turquoise, green, blue, red, white, yellow, and pink. The default is blue </td></tr> | ||
< | <tr><th>%sfield</th> | ||
< | <td>A reference to an instance of a ScreenField object.</td></tr> | ||
</ | </table> | ||
==Usage notes== | ==Usage notes== | ||
Line 17: | Line 17: | ||
display may not show the intended colors. | display may not show the intended colors. | ||
For an example using Color method calls, see “[[Screen class example]]”. | For an example using Color method calls, see &#x201C;[[Screen class example]]&#x201D;. | ||
==See also== | ==See also== | ||
{{Template:ScreenField:Color footer}} | {{Template:ScreenField:Color footer}} |
Revision as of 20:12, 18 March 2011
Set or return the FieldColor for a screenfield (ScreenField class)
This property sets or returns the FieldColor for a ScreenField. FieldColor is a ScreenField class enumeration. This attribute is initially set for a field by the AddField method.
Syntax
%currentFieldColor = sfield:Color sfield:Color = newFieldColor
Syntax terms
fieldcolor | A FieldColor enumeration. Valid values (case unimportant) are turquoise, green, blue, red, white, yellow, and pink. The default is blue |
---|---|
%sfield | A reference to an instance of a ScreenField object. |
Usage notes
The Color property lets you set colors regardless of the actual terminal type, although some terminals may not display these attributes correctly. Also, many terminal emulator programs allow local customization of color attributes. Under either of these conditions, which are not detectable by the screen methods, the display may not show the intended colors.
For an example using Color method calls, see “Screen class example”.