Appendix A: System Routines — Windows
1153
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
WinBackground
Declaration:
void
WinBackground
(WINDOW
* w
, BYTE
Attr
)
Category(ies):
Windows
Description:
Change the current default attribute for the background of a window. The
background is used when the window is cleared or scrolled (explicitly with
WinScrollH
or
WinScrollV
or implicitly when WF_TTY is set in the
WinOpen
and the screen is scrolled).
Inputs:
w
— WINDOW struct of a previously opened window.
Attr
— The valid values are and the result of all of the pixels are:
A_NORMAL Turned on.
A_REVERSE Turned off (cleared).
A_XOR Pixels already in the window are flipped.
Outputs:
None
Assumptions:
The default background is A_REVERSE (clear).
Side Effects:
Sets the background attribute for the window until changed.
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: WinClr, WinScrollH, WinScrollV
Example:
WinBackground( &Win, A_NORMAL ); /* Window background is now solid */
WinClr( &Win );
WinBackground( &win, A_REVERSE ); /* back to normal */