Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FreshWin (c) Fresh Technologies - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

                          Creating Custom Frames

  Remark:   To use a custom frame type, you must send a
            string like an @...BOX string. However, you must send
            twelve characters as opposed to nine, if you are using a
            title box. The first nine will be used for the
            window frame and the second three will be used for
            the title box frame. Use an eight-character string
            with one space in between, if you don't want to
            use a fill character in the window.

  Example:  . The example, displayed below, creates a
            custom frame, this time a double line box split
            with a single line.

            local cMyFrame := "######## #-#"

            wNew     ( "MenuWin", 8, 9, 22, 49, "W+/BG" )
            wTitle   ( "MenuWin", "Rover's Hydrant",, WT_BOX )
            wFrame   ( "MenuWin", cMyFrame )
            wHowOpen ( "MenuWin", B_EXPLODELT( 30 ) )
            wHowClose( "MenuWin", B_IMPLODERT( 30 ) )
            wShadow  ( "MenuWin", B_SHADOW() )

            The above will create the following frame in
            in high white on cyan. The window below is
            not to scale but Rover doesn't seem to care.

              ###################################
              #         Rover's Hydrant         #
              #---------------------------------#
              #                                 #
              #                                 #
              #                                 #
              #                                 #
              ###################################

See Also:

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