$DEF_CUROCC_VIDEO

Set the default video characteristics for fields of the current occurrence.

$DEF_CUROCC_VIDEO {=} Attribute{,AttributeN,...}

Arguments

Attribute—video attribute code. When combining video attributes, you can enclose them in parentheses:

$DEF_CUROCC_VIDEO (BRI,UND)
Video Attribute Codes
Attribute Code Description
BLI Blinking
BOR Border
BRI Bright
HLT Use system highlight color.

Note: This attribute always takes precedence over other video attributes that may be specified.

INV Inverse
UND Underline
COL= n Set color to color code n, the sum of the color numbers for foreground and background.

Defaults

Assignment file: client assignment files
Section: [SETTINGS]
Default value: None

Description

$DEF_CUROCC_VIDEO sets the default video attributes for fields of the current occurrence in a form. In addition, it sets the value of the DEF parameter used with the curoccvideo and $curoccvideo ProcScript commands. (You cannot test or change the value for $DEF_CUROCC_VIDEO in ProcScript code.)

In GUI environments, if $DEF_CUROCC_VIDEO is not defined, fields of the current occurrence are shown in inverse. In character mode, they are shown in normal video (no inverse).

By default, fields of the current occurrence in a form are not highlighted. Use the assignment setting $CUROCC_VIDEO to highlight the current occurrence in all application forms. Use curoccvideo and $curoccvideo to selectively enable the highlighting of the current occurrence for selected forms in ProcScript.

If the video attribute is HLT, and the system highlight color is the same as the color used by Windows to highlight text selected in an edit box, the difference between selected and non-selected text will not be visible to the user. In this case, you can define a different color combination using the $CUROCC_VIDEO_HLT assignment setting.

Using $DEF_CUROCC_VIDEO

To make the fields of the current occurrence appear with white letters on a blue background, determine the color number by adding 56 (white foreground) and 1 (blue background). This will be the default setting when it is enabled with the setting $CUROCC_VIDEO or in ProcScript:

$DEF_CUROCC_VIDEO COL=57

Related Topics