Appendix A: System Routines — Windows
1173
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
WinHeight
Declaration:
WIN_COORDS
WinHeight
(WINDOW *
w
)
Category(ies):
Windows
Description:
Return the height of the client (drawable) area of a window.
Inputs:
w
— WINDOW struct of a previously opened window.
Outputs:
Height of window’s client region.
Assumptions:
The window region is the region that was defined when the window was
created with
WinOpen
. If the window is full screen (not counting the status
bar which may not be overlapped), then the client region is equal to the
window region. The client region is reduced by adding borders or a title to a
window.
Side Effects:
None
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: WinOpen, WinWidth
Example:
/* This example uses the width and height of its window (appW) so that it can
fill the entire window with the letter 'A'. */
WIN_COORDS wWidth, wHeight, y;
wWidth = WinWidth( &appW );
wHeight = WinHeight( &appW );
WinClr( &appW );
WinFont( &appW, F_6x8 );
for (y = 0; y <= wHeight - 8; y += 8 )
WinCharXY( &appW, 0, y, 'A', (wWidth / 6) );