Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TSDWIN: Clipper 5.0 Interface Library - <b>msgtext <message> [header <header>] [wait <wait>] ;</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
MSGTEXT <message> [HEADER <header>] [WAIT <wait>] ;
         [<top>], [<left>], [<bottom>], [<right>] ;
         [COLOR <color>] [SHADOW <mshadow>] [FRAME <mframe>]
 ----------------------------------------------------------------------------

Purpose: Displays a string in a window. The string is wrapped to
         fit into the window. Various exit methods are allowed.
         The colour is defined in twMsgInit() and the shadow and
         frame types default to those of the currently active
         window.

Parameters: message  - 'C' String to be displayed. The string can
                           be any length. It is truncated to fit
                           inside the display window. Such strings
                           could be held, for instance, in memo
                           fields.

            header   - 'C' String to use for the title. In this
                           version, the title is centered on the
                           top line of the window.

            wait     - 'N'  0 - Wait for a key press then restore
                                the underlying screen.

                           -1 - Leave the message on the screen
                                and free the stack allocation
                                space.

                           -2 - Leave the message on the screen but
                                keep it on the stack to be released
                                later with twMsgEnd().

                            n - Wait 'n' seconds or until a key is
                                pressed, then restore the
                                underlying screen.

                               Wait defaults to 0.

            top, left, bottom,
            right   - 'N' Screen Coordinates. The defaults are
                           3,20,13,60.

            color   - 'C' Clipper Colour String. Text and frame are
                       displayed in the Clipper standard colour and
                       the title in the enhanced colour. This
                       parameter defaults to the value held in the
                       initialization array for twMsgInit().

            mshadow  - 'N' TSDWIN shadow type. Defaults to the
                           shadow type for the currently active
                           window.

            mframe   - 'N' TSDWIN frame type. Defaults to the frame
                           type for the currently active window.

Example: MSGTEXT "This is a text message which " + ;
                 "gets ripped up into parts and " + ;
                 "put back together in lines." + ;
                 " Here's the second line!!!" + ;
                 " Why no a third too? Bet it'll work!" ;
                 HEADER "Trying Text Message" ;
                 WAIT 5 ;
                 5,10,12,55 ;
                 COLOR "gr+/b" SHADOW 3 FRAME 6

See Also: twTextMsg()

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