Windupstat - Texas Instruments TI-89 Developer's Manual

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

Appendix A: System Routines — Windows

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
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" );
WinEllipse( &w, 40,40,20,20 );
WinDupStat( &w, FALSE );
WinStr( &w, "THIS GOES ONLY TO THE SCREEN");
ngetchx();
WinBackupToScr( &w );
ngetchx();
WinClose( &w );
}
TI-89 / TI-92 Plus Developer Guide
— WINDOW struct of a previously opened window.
/* written to screen & backup */
/* ditto */
/* last WinStr text will be gone */
Not for Distribution
/* does not go to backup */
Beta Version January 26, 2001
1167

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents