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 - wpopup http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
WpopUp

Open a window centered on the screen.

Header File.....TCXLwin.h

Prototype.......WndT CTYP WpopUp(IntT cf, IntT sr, IntT sc, IntT er,
                     IntT ec, BytT bt, AtrT ba, AtrT wa);

Source File.....WCT\WPOPUP.C

Arguments.......cf -  Centering Flag (One of the following)
                  CNT_HOR..Horizontal
                  CNT_VER..Vertical
                  CNT_CNT..Both
                sr -  Start Row
                sc -  Start Column
                er -  End Row
                ec -  End Column
                bt -  Border Type (One of the following)
                  BOX_SNG..all single
                  BOX_DBL..all double
                  BOX_VER..horiz single, vert double
                  BOX_HOR..horiz double, vert single
                  BOX_HVY..heavy lines
                  BOX_SPA..spaces  no box
                  BOX_EXP..explode frame on open
                ba -  Border Attribute (See Appendix A)
                wa -  Window Attribute (See Appendix A)

Returns.........The window handle of the new window, or:
                ERR_ARG  -  Argument Failure
                   TcxlErr contains:
                   W_INVCOORD - Invalid Coordinates
                   W_INVBTYPE - Invalid Border Type

Notes...........This function, like Wopen(), opens a screen window and
                makes it active.  However, this function will automatically
                center the window on the screen; horizontally, vertically,
                or both.  This function will detect the screen size, based
                on the initialization parameters, and react accordingly.

                For consistency, the parameter list for WpopUp() is
                identical to Wopen() except for the addition of the flag
                byte.  However, the start/end positions are used only for
                size determination.

                WpopUp() is identical to calling Wopen() followed by
                Wcenter().

See Also: Appendix A

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