[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
+---------------------------------+
|            SET TALK             |
+---------------------------------+
SET TALK  ON | OFF |
        WINDOW [<window name>]
        | NOWINDOW

-----------------------------------
Direct command processing information to screen or window.
Default value - ON
-----------------------------------

ON
        If talk was SET OFF and is then SET ON, talk is directed to same
location before it was SET OFF.

OFF
        Use SET TALK OFF to prevent talk from being sent to screen or to a
system or user-defined window.

WINDOW [<window name>]
        If you specify SET TALK WINDOW, talk is displayed in upper right corner
of screen in system message window if SET NOTIFY is ON.

        When you type or move mouse, system message window is removed.

        You can direct talk to a user-defined window by including a <window
name> after the WINDOW keyword.  You must create the user-defined window
with DEFINE WINDOW before directing talk to it.  A user-defined window
does not have to be active or visible to direct talk to it.

NOWINDOW
        Issuing SET TALK NOWINDOW directs talk to the screen.

TALK reporting interval can be specified with SET ODOMETER.

+---------------------------------+
|         Program Example         |
+---------------------------------+
The following program example demonstrates how you can save the TALK
setting without generating talk on the screen or in a window.

IF SET('TALK') = 'ON'  && TALK handled as a special case.
        SET TALK OFF          && Turn TALK OFF
        savetalk = 'ON'       && TALK was ON, save the setting
ELSE   && TALK is OFF
        savetalk = 'OFF'      && TALK was OFF, save the setting
ENDIF

row =    INT((SROWS() - 14) / 2)
column = INT((SCOLS() - 80) / 2)

SET TALK &savetalk   && Restore original TALK setting

=sys(2017)
@ row,      column + 1  FILL TO row+3,  column + 16 COLOR GR+/B
@ row + 4,  column + 1  FILL TO row+10, column + 8  COLOR GR+/B
@ row + 4,  column + 10 FILL TO row+10, column + 22 COLOR R+/B
@ row + 4,  column + 23 FILL TO row+10, column + 35 COLOR R/B
@ row,      column + 36 FILL TO row+10, column + 50 COLOR BG/B
@ row + 4,  column + 51 FILL TO row+10, column + 63 COLOR G/B
@ row + 4,  column + 64 FILL TO row+10, column + 79 COLOR B+/B
@ row + 11, column      FILL TO row+14, column + 79 COLOR W/B

-----------------------------------

See Also:  DEFINE WINDOW, SET ODOMETER, SYS(103) TALK setting, _TALLY

-----------------------------------

See Also: DEFINE WINDOW SET ODOMETER sys(103) TALK setting
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson