Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - restorescrn() restores a screen area http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 restorescrn()       Restores a screen area
------------------------------------------------------------------------------
 Declaration
   screen.hdr

 Syntax
   proc restorescrn extern
   param value _HSCR hScreen

 Arguments
   hScreen is a saved screen handle.

 Return
   None.

 Description
   This procedure restores a screen area that was originally saved by the
   savescrn() function to hScreen.

 Example
   #define EXAMPLE_SCREEN
   #include example.hdr

   // Save a portion of the screen, get user input, and restore the screen
   
   proc Test_restorescrn
   vardef
      char( 20 ) cName
      _HSCR      hScreen
   enddef
   cName := "Christine"
   hScreen := savescrn( 8, 8, 12, 44 )
   @ 8, 8 to 12, 44
   @ 10, 10 say "Input Name: " get cName
   read
   restorescrn( hScreen )
   ? "Input was", cName
   endproc

   proc main
   Test_restorescrn()
   endproc

See Also: savescrn()

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