EasyManua.ls Logo

Texas Instruments TI-89 - Windeactivate

Texas Instruments TI-89
1398 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
1166
Appendix A: System Routines — Windows
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
WinDeactivate
Declaration:
void
WinDeactivate
(WINDOW *
w
)
Category(ies):
Windows
Description:
Deactivate a window (changes its border to single-line unless full screen).
Inputs:
w
WINDOW struct of a previously opened window.
Outputs:
None
Assumptions: WinDeactivate
is really only needed if an app has multiple windows. The
purpose is to provide a visual clue to the user that a particular window has
lost the current focus and that another window (which will be activated with
WinActivate
) has received the focus. When
WinActivate
is called, the
window with the current focus (the last one to do a
WinActivate
) is
automatically deactivated with
WinDeactivate
and so it is not necessary to
explicitly call
WinDeactivate
.
Side Effects:
None
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: WinActivate
Example:
WINDOW win1, win2;
if (WinOpen(&win2, MakeWinRect(5,5,70,50), WF_ROUNDEDBORDER|WF_TTY)) {
WinActivate( &win2 ); /* just to draw the border */
if (WinOpen(&win1, MakeWinRect(75,5,140,50), WF_TTY)) {
WinActivate( &win1 ); WinClr( &win1 );
WinStr( &win1, "ACTIVE\nWINDOW" );
GKeyIn( NULL, 0 );
WinClr( &win1 ); WinStr( &win1, "NOT\nACTIVE");
WinDeactivate( &win1 );
WinStr( &win2, "NO WINDOWS\nACTIVE" );
GKeyIn( NULL, 0 );
WinClose( &win2 );
}
WinClose( &win1 );
}

Table of Contents

Other manuals for Texas Instruments TI-89

Related product manuals