Programming with Reflection

image\rwnprg32.gif Field Attributes for Color Display

 

The following table lists field attribute codes that control how items are displayed on screen when Reflection is emulating a 5250 terminal. Each attribute code occupies one character in the screen display and controls the display of all subsequent characters until the next attribute code. Each Attribute occupies one character position on screen and is displayed as a blank. You can view the hex values of attribute codes by using the PlusCR function, which is mapped by default to Alt+F12.

You can use the SetDisplayAttribute method to control whether the on-screen characters controlled by an attribute are displayed with column separators, underlining, blinking, or reversed colors. You can use SetColorMap method to select different colors.

Hex Value

Decimal Value

Color Display

0x20

32

Green

0x21

33

Green/Reverse image

0x22

34

White

0x23

35

White/Reverse image

0x24

36

Green/Underscore

0x25

37

Green/Underscore/Reverse image

0x26

38

White/Underscore

0x27

39

Nondisplay

0x28

40

Red

0x29

41

Red/Reverse image

0x2A

42

Red/Blink

0x2B

43

Red/Reverse image/Blink

0x2C

44

Red/Underscore

0x2D

45

Red/Underscore/Reverse image

0x2E

46

Red/Underscore/Blink

0x2F

47

Nondisplay

0x30

48

Turquoise/Column separators

0x31

49

Turquoise/Column separators/Reverse image

0x32

50

Yellow/Column separators

0x33

51

Yellow/Column separators/Reverse image

0x34

52

Turquoise/Underscore

0x35

53

Turquoise/Underscore/Reverse image

0x36

54

Yellow/Underscore

0x37

55

Nondisplay

0x38

56

Pink

0x39

57

Pink/Reverse image

0x3A

58

Blue

0x3B

59

Blue/Reverse image

0x3C

60

Pink/Underscore

0x3D

61

Pink/Underscore/Reverse image

0x3E

62

Blue/Underscore

0x3F

63

Nondisplay