highlight
The highlight property specifies the special effect (if any) with which to display or print the field.
Use the HighlightKind enumeration to
specify values for this property. The HighlightKind enumeration
has the following values:
- blink
- Causes the text to blink repeatedly.
- defaultHighlight
- In Console UI only, this value uses the default highlight setting from the current window.
- noHighlight (the default)
- Indicates that no special effect is to occur; specifically, no blink, reverse, or underline.
- reverse
- Reverses the text and background colors. For example, if the display has a dark background with light letters, the background becomes light and the text becomes dark. This value is available only for COBOL output.
- underline
- Places an underline at the bottom of the field.
Compatibility
| Data item | VGUI record | Console UI | Text Form Java™ | Text Form COBOL | Print Form Java™ | Print Form COBOL |
|---|---|---|---|---|---|---|
| Yes | No | Yes | Yes* | Yes* | Yes* | Yes* |
* The highlight property is supported for constant fields on text and print forms with the same compatibility considerations as for variable fields. The following additional compatibility considerations apply:
| Platform | Issue |
|---|---|
| Java™ generation | Only noHighlight and underscore are supported. |
| COBOL generation | Support varies based on the emulator. |
| iSeries® COBOL | blink is supported only for red fields, and is ignored for fields of any other color. |
| Print forms | Only noHighlight and underscore are supported. |
| Debug | Only noHighlight and underscore are supported. |