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

Syntax:     SCREENMIX(<expC1>,<expC2>[,<expN1>][,<expN2>])

Arguments:  <expC1> is the string to be issued.
            <expC2> denotes the attributes to be mixed with the
            characters in <expC1>.
            <expN1> specifies the first line for the output (default:
            cursor line).
            <expN2> specifies the first column for the output (default:
            cursor column).

Returns:    A character string.
            A null string is always returned.

Usage:      This function can be used to mix two strings <expC1> and
            <expC2>, one with characters and the other with attributes,
            so it is possible to display the resulting string directly
            onto the screen.  The first attribute of <expC2> will the be
            assigned to the first symbol of <expC1>.  This means that the
            first symbol will be displayed in the color determined via the
            first attribute.  Arguments <expN1> and <expN2> determine
            the first line and column for the output.

Notes:      The output will start at the actual cursor position if the
            arguments for the lines and columns (<expN1> and <expN2>)
            are not specified.

Library:    CT1.LIB


--------------------------------- Example ------------------------------

Examples:   * The following strings will determine the text
            * and the attributes required to be displayed
            * with SCREENMIX().  The first is displayed as
            * red on white (120) and the "help" text blue
            * on white (113).

            string = "help"
            attribute = CHR(120)+REPLICATE(CHR(113),5)

            * Output from the actual cursor position.
            SCREENMIX(string,attribute)

            * Output in line 24 from cursor column.
            SCREENMIX(string,attribute,24)

            * Output in line 24 from column 0.
            SCREENMIX(string,attribute,24,0)



See Also: COLORTON() SAYSCREEN()

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