home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
PROGRAM
/
CLIPPER
/
SYSWIN
/
SYSWIN.DOC
< prev
next >
Wrap
Text File
|
1992-10-28
|
3KB
|
74 lines
Function SAV_SWIN2( nTRow, nLCol, nBRow, nRCol, cColorStr, lShaded)
Function RST_WIN2( )
Function CLR_WIN( nTRow, nLCol, nBRow, nRCol, cColorStr)
Function DISPWIN( nTRow, nLCol, nBRow, nRCol, cColorStr)
Function SCR_DULLING( cStr )
Function SCR_TO_TXT( nTop, nLft, nBot, nRit )
by Rod Cushman
May 15, 1992
Your encouraged to modify and improve this code. Please contact me
at the address below with your comments & suggestions.
The functions CLR_WIN(), DISPWIN(), SCR_DULLING() and SCR_TO_TXT() are
miscellaneous window functions which I have in my library. CLR_WIN()
and DISPWIN() are basically the same function. I kept the dual
definition because some of the other programs I have linked into my
applications call DISPWIN(); all of mine call CLR_WIN() or
SAV_SWIN2(). I kept the extra function for compatibility purposes.
Use SAV_SWIN2() when you want to save the region of the screen behind
the box being painted. A subsequent call to RST_SWIN2() (with no
parameters required) will restore the prior screen region and color.
Use CLR_WIN() or DISPWIN() when you don't care about the region behind
the painted box.
If you configured Clipper 5.0 according to Nantucket's installation
the CLIPWIN.BAT file should compile & link the program TEST_WIN.PRG.
Or you can compile syswin.prg as a standalone with the /n parameter
and include it with your application. The file does rely upon Clipper
header files (box.ch).
1) Function SAV_SWIN2() saves the current background screen and
color values. The parameters cColorStr and lShaded are optional
parameters. The function defaults to the current color and a
shaded window.
2) Function RST_SWIN2() restores the last window region saved via a
call to the function SAV_SWIN2(). The color setting prior to
the last call to SAV_SWIN2() is also restored.
3) Function CLR_WIN() paints a box on the display according to the
parameters. The color is set to the color parameter passed;
defaults to the current color. The border is user definable as
the cBorder parameter; defaults to a double-bar border.
4) Function DISPWIN() paints a box on the display according to the
parameters. The color is set to the color parameter passed;
defaults to the current color. The box has a double-bar
horizontal borders with single-bar vertical borders.
5) Function SCR_DULLING() is part of Steven Straley's TooLkit (tm).
Function is supposed to set the dull the intensity attribute of
the screen region passed as a parameter. I have not tried this,
but included it in my library of routines several months ago.
6) Function SCR_TO_TXT() theoretically parses the characters from
the screen region passed down to the function. Again, I have
not tried this yet so I cannot ascertain the function operates
correctly (it should work, however). I wrote this function
intending to use it as part of an error function to write user
screens to disk for later retrieval (as part of an error logging
system).
Roderick Jay Cushman
4773 S. Breton Ct. S.E. #213
Kentwood, MI 49508
(616) 554-9563