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 - <b>drawhbar() screen function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  DRAWHBAR()                                                 Screen Function
 Purpose..: Draw a horizontal crossbar
-------------------------------------------------------------------------------
 Syntax...: DrawHBar( <nRow>, <nLCol>, <nRCol>, [<nChrBar>],
                    [<nChrEnd1>], [<nChrEnd2>], [cClr] ) --> NIL

 Arguments: <nRow>        = Row to start "H-bar".

            <nLCol>       = Left column position.
            <nRCol>       = Right column position.

            [<nChrBar>]   = Cross bar piece (default is 1).
            [<nChrEnd1>]  = Left column end piece (default is 1).
            [<nChrEnd2>]  = Right column end piece (default is 1).

                       Cross Bar & Column End
                       -------------------------
                       Value  Description
                       -------------------------
                       1      Single line.
                       2      Double line.
                       3|5    Thick single line.
                       -------------------------

            [<cClr>]        = window frame color. If not
                              specified, the window will default to the
                              setcolor() color.

 Returns..: NIL

 Remark...: Draw an "H" type bar on screen between nLCol and nRCol at
            row, nRow.

 Source...: DRAWHBAR.PRG
-------------------------------------------------------------------------------
 Example..: The following function call would draw the bar, #----#

               @ 0, 22, 5, 42 box "########"
               DrawHBar( 2, 22, 42, 1, 3, 3 )

            The code will draw the following box:

               ######################
               #                    #
               #--------------------#
               #                    #
               #                    #
               ######################

 Note.....: The function can used be anytime. It is
            not window dependant.

See Also: wSay() DrawIBar()

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