DISPLAY Command

DISPLAY — Display the contents of a data reference in a linked screen widget or (re)sets the color.

Synopsis

DISPLAY { widget_ref | ALL }

DISPLAY widget_ref { BASECOLOR | BGCOLOR | FGCOLOR | TEXTCOLOR } color_ref [ STATE { Normal | Active | Prelight | Selected | Insensitive } ]

DISPLAY widget_ref RESETCOLOR

Introduction

The DISPLAY command displays the contents of a data reference in a linked screen widget on the active screen or sets the color. When setting the color and no STATE is defined, the default STATE "Normal" will be used.

Arguments

widget_ref

An existing widget name on the active screen.

BASECOLOR

Sets the base (brush) color of the widget.

FGCOLOR

Sets the forground color of the widget.

BGCOLOR

Sets the background color of the widget.

TEXTCOLOR

Sets the text color of the widget.

RESETCOLOR

Resets the widget to the theme defaults.

color_ref

name for a color from rgb.txt (as distributed with the X Windows System), such as DarkSlateGray, or a hex specification such as #FFFF00 which represents the color yellow for instance.

STATE Normal

Set color for state during normal operation.

STATE Active

Set color for state of a currently active widget, such as a depressed button.

STATE Prelight

Set color for state indicating that the mouse pointer is over the widget and the widget will respond to mouse clicks.

STATE Selected

Set color for state of a selected item, such the selected row in a list.

STATE Insensitive

Set color for state indicating that the widget is unresponsive to user actions.

Example

. . .
. . .
DISPLAY ord_total
. . .
. . .
DISPLAY ord_total BASECOLOR "red" STATE Normal
. . .
. . .
DISPLAY ord_total RESETCOLOR
. . .
. . .

Related Commands

None.