Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Grumpfish Library 3.2 - <b>shrbox()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SHRBOX()

    What good are exploding boxes without shrinking boxes?  Now you can
    shrink that box you just exploded onto the screen back into
    nothingness.

    Syntax

    SHRBOX(<top>, <left>, <bottom>, <right>, <delay>, [<color>])

    Required Parameters

    <top>, <left>, <bottom>, <right> are integers representing the box
    coordinates.

    <delay> is an integer between 0 and 100, and is used to delay the
    shrinking process.  The larger the delay, the longer the shrinking
    will take.  Again, I recommend values between 1 and 10, and that you
    should experiment to discover what value works best for your
    machine.

    Optional Parameter

    <color> is a character string specifying the color you wish to use
    to blank out the previous box.  If not passed, the current color
    setting will be used.

    SHRBOX() blanks out the area marked by the specified coordinates
    from the outside in, exactly opposite the method used by EXBOX().

    Sample usage

    ** using the color parameter                            
    SET COLOR TO +W/B                                       
    EXBOX(11, 17, 13, 62, 2, 5)                             
    @ 12,19 SAY 'This box will self-destruct in ten seconds'
    INKEY(10)                                               
    SHRBOX(11, 17, 13, 62, 2, 'W/N')                        

    ** not using the color parameter                             
    SET COLOR TO +W/B                                            
    EXBOX(11, 17, 13, 62, 2, 5)                                  
    @ 12,19 SAY 'This computer will self-destruct in two seconds'
    INKEY(2)                                                     
    SET COLOR TO W/N                                             
    SHRBOX(11,17,13,62,2)                                        
    Reboot()                  && special Assembler routine, ha ha

    As with the exploding box, a shrinking box will have no noticeable
    effect with monochrome monitors.  Again, please consider trading in
    your monochrome monitor for something more colorful.  Find someone
    who just uses their PC for word processing - they'll love that great
    green (amber) on black display!

See Also: EXBOX() POPBOX() SHADOWBOX()

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