Color (ScreenField property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Created page with "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 [[Screen class#A...")
 
mNo edit summary
Line 1: Line 1:
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 [[Screen class#AddField function|AddField method]].
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 [[Screen class#AddField function|AddField method]].
==Syntax==
===Syntax terms===
<dl>
<dt>fieldcolor
<dd>A FieldColor enumeration. Valid values (case unimportant) are turquoise, green, blue, red, white, yellow, and pink. The default is blue
<dt>%sfield
<dd>A reference to an instance of a ScreenField object.
</dl>


  %sfield:Color = fieldcolor
==Usage Notes==
  fieldcolor = %sfield:Color
 
; Color syntax
 
; 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
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

Revision as of 20:12, 18 March 2011

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

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”.