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>wputc() window function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  WPUTC()                                                    Window Function
 Purpose..: Center some text in a window
-------------------------------------------------------------------------------
 Syntax...: wPutC( [<uWin>], [<nR>], <cTxt>[, <cClr>] ) --> NIL

 Arguments: [<uWin>] = the string identifier of the window
                       OR the reference to the window structure
                       returned as an array by wNew() or wArray().
                       If not passed, the function will operate on
                       the window in focus.
            [<nR>]  = row on which to center text.
            <cTxt>  = window text to be displayed.
            [<cClr>]= color to be used for the text.

 Returns..: NIL

 Remark...: If the length of <cTxt> exceeds the width of the window,
            the function truncates text on the right.

 Source...: WPUTC.PRG
-------------------------------------------------------------------------------
 Example..: . The example displays the text in the
              window in focus on the second row.

            wPutC( , 2, "Okay... Let's move it..." )

            . The example displays text in a window but
              the color is changed.

            wPutC( , 0, "Specify files to be installed", "B/BG" )

             As with all FreshWin window functions that alter the display,
             this function automatically hides and redisplays the mouse
             cursor if it is active.

See Also: wSay() wPutR() wPutL()

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