Windeactivate - Texas Instruments TI-89 Developer's Manual

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

Advertisement

1166

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 );
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 );
}
TI-89 / TI-92 Plus Developer Guide
Appendix A: System Routines — Windows
/* just to draw the border */
Not for Distribution
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents