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>wputr() window function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  WPUTR()                                                    Window Function
 Purpose..: Right justify some text in a window
-------------------------------------------------------------------------------
 Syntax...: wPutR( [<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 right justify 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...: WPUTR.PRG
-------------------------------------------------------------------------------
 Example..: . The example displays the text in the
              window in focus on the fourth column.

        wPutR( , 4, " ... and when done, press Alt-F1 " )

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

        wPutL( , 6, "How many windows are open?", "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() wPutL() wPutC()

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