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

Begin menu definition, describe menu window.

Header File.....TCXLmnu.h

Prototype.......IntT CTYP MnuDef(IntT sr, IntT sc, IntT er, IntT ec,
                     BytT ft, AtrT fa, AtrT wa, VfvCP fo, IntT ni);

Source File.....MNU\MNUDEF.C

Arguments.......sr -  Start row of menu's window
                sc -  Start column of menu's window
                er -  End row of menu's window
                ec -  End column of menu's window
                ft -  Frame  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 -  Frame Attribute (See Appendix A)
                wa -  Window Attribute (See Appendix A)
                fo -  Function to be called when the menu's window is
                      opened.  An example would be to add a title, a
                      shadow, etc.
                ni -  Number of items in the menu

Returns.........ERR_NUL  -  No Error
                ERR_ARG  -  Argument Failure
                ERR_MEM  -  Memory Allocation Failure
                   TcxlErr contains:
                   W_NOITMDEF  -  No Menu Items Defined

Notes...........This function does not actually open any windows or menus,
                just defines them.  This must be used in conjunction with
                MnuItm() and MnuEnd().  This (or MnuAct()) is one of the 4
                functions that are required to process a menu.

See Also: Appendix A

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