Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TCXL Database - wprtfmt, wputfmt http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
WprtFmt, WputFmt

Display a formatted string/attribute.

Header File.....TCXLwin.h

Prototype.......IntT CTYP WprtFmt(BytT wr, BytT wc, AtrT at, ChrP fs,
                     ChrP ps);
                IntT CTYP WputFmt(ChrP fs, ChrP ps);

Source File.....WIN\WPRTFMT.C
                WIN\WPUTFMT.C

Arguments.......wr -  Window Row
                wc -  Window Column
                at -  Attribute (See Appendix A)
                fs -  Format Control String (See Appendix D)
                ps -  String to Display

Returns.........ERR_NUL  -  No Error
                ERR_ARG  -  Argument Failure
                   TcxlErr contains:
                   W_NOACTIVE  -  No Active Window
                   W_INVCOORD  -  Invalid Coordinates
                   W_INVFORMT  -  Invalid Format String
                   W_STRLONG   -  String Could Not Fit In Window

Notes...........Displays a string to active window using a CXL format
                string.  If a character in a string doesn't match its
                format control character, it will be displayed as a '?'.
                WprtFmt() displays at the specified coordinates, using the
                specified attribute (See Appendix A);  control characters
                and escape sequences are NOT recognized; cursor position is
                NOT updated.  WputFmt() displays at the window's current
                text attribute; control characters and escape sequences
                (See Appendix C) are recognized; cursor position is
                updated.

See Also: Appendix A Appendix D

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