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 - wprtcen, wputcen http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
WprtCen, WputCen

Displays a centered string/attribute.

Header File.....TCXLwin.h

Prototype.......IntT CTYP WprtCen(BytT wr, AtrT at, ChrP ps);
                IntT CTYP WputCen(ChrP ps);

Source File.....WIN\WPRTCEN.C
                WIN\WPUTCEN.C

Arguments.......wr -  Window Row
                at -  Attribute (See Appendix A)
                ps -  String to Center

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

Notes...........Centers a string in the active window.  WprtCen() 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.
                WputCen() 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

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