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 - restorenew() restore a saved screen to a new position http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 restorenew()        Restore a saved screen to a new position
------------------------------------------------------------------------------
 Declaration
   screen.hdr

 Syntax
   proc restorenew extern
   param value _HSCR hScreen, ;
         value uint  uTop, ;
         value uint  uLeft, ;
         value uint  uBottom, ;
         value uint  uRight

 Arguments
   hScreen is a saved screen handle.

   uTop is the top row of the screen area.

   uLeft is the leftmost column of the screen area.

   uBottom is the bottom row of the screen area.

   uRight is the rightmost column of the screen area.

 Return
   None.

 Description
   This procedure is similar to restorearea(), but it will restore the screen
   area to a position on the screen which is different from the original
   location.

 Example
   #define EXAMPLE_SCREEN
   #include example.hdr

   proc Test_restorenew
   // Move a window to a new position
   vardef
      _HSCR hScr1, hScr2
   enddef
   DrawScreen( 'x' )                       // draw a screen
   hScr1 := savescrn( 10, 10, 15, 25 )     // save a portion of the screen
   @ 10, 10 clear to 15, 25                // redraw screen area
   @ 10, 10 to 15, 25 double
   hScr2 := savescrn( 10, 10, 15, 25 )
   getkey()                                // wait
   restorescrn( hScr1 )                    // restore original screen
   restorenew( hScr2, 05, 40, 10, 55 )     // reposition changed screen portion
   endproc

   proc main
   Test_restorenew()
   endproc

See Also: restorearea()

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