Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- NetLib for Clipper, Version 6.0 - n_restattr( <cbuffer> ) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_RESTATTR( <cBuffer> )


Parameters

<cBuffer>
Memory variable where screen attributes were stored using N_SAVEATTR().


Returns

NIL


Description

This function can be used on its own, or in combination with Clipper's 
RESTORE SCREEN or RESTSCREEN(). The Clipper command and function 
restore screen contents, while N_RESTATTR() restores screen attributes, 
including all colors and intensity, the cursor location, size and 
visibility, the scoreboard, and delimiters.

If the NetLib function is used in combination with RESTORE SCREEN or 
RESTSCREEN(), the Clipper command or function should come first-in 
other words, restore the screen contents before restoring the screen 
attributes.


Example

* F1 help procedure
PROCEDURE Help
   LOCAL cBuffer
   cBuffer = N_SAVEATTR()
   SET COLOR TO g+/r
   SET CURSOR OFF
   @ 23, 0 SAY 'HELP is under construction.'
   N_RESTATTR(cBuffer)
RETURN




See Also: N_SAVEATTR()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson