Appendix A: System Routines — Windows
1167
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
WinDupStat
Declaration:
BOOL
WinDupStat
(WINDOW *
w
, BOOL
Stat
)
Category(ies):
Windows
Description:
Turn the duplicate status on (
Stat
= TRUE) or off (
Stat
= FALSE). When the
duplicate status is turned off, all writes to a window go only to the screen.
When turned on, all writes go to both the screen and the backup window.
This only applies to windows created with the WF_DUP_SCR flag set.
Inputs:
w
— WINDOW struct of a previously opened window.
Stat
— TRUE to turn duplicate writes on, FALSE to turn them off.
Outputs:
If WF_DUP_SCR is set then returns the old status.
Assumptions:
The WINDOW
w
was opened with the WF_DUP_SCR flag.
Side Effects:
Duplicate writes slow down all writes to windows with WF_DUP_SCR set.
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: WinOpen, WinBackupToScr
Example:
WINDOW w;
if (WinOpen(&w, MakeWinRect(10,10,90,80), WF_DUP_SCR|WF_TTY )) {
WinActivate( &w );
WinStr( &w, "THIS IS DUPLICATED\n" ); /* written to screen & backup */
WinEllipse( &w, 40,40,20,20 ); /* ditto */
WinDupStat( &w, FALSE );
WinStr( &w, "THIS GOES ONLY TO THE SCREEN"); /* does not go to backup */
ngetchx();
WinBackupToScr( &w ); /* last WinStr text will be gone */
ngetchx();
WinClose( &w );
}