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

Build complete menu tree from defining set of Mbld and Ibldobjects.

Header File.....TCXLmnu.h

Prototype.......IntT CTYP MnuBuild(MbldP mp);

Source File.....MNU\MNUBUILD.C

Arguments.......mp -  Pointer to Top Mbld structure.

                The Mbld and Ibld structures are organized based on the
                parameters used by MnuDef(), MnuItm(), ItmTxt() ItmFun()
                and MnuEnd().  For complete descriptions of these
                structures, and a detailed example of the way they can be
                used, see INC\TCXLmnu.h and DEMO\MENUDEMO.C.

Returns.........ERR_NUL  -  No Error
                ERR_ARG  -  Argument Failure
                ERR_MEM  -  Memory Allocation Failure
                   TcxlErr contains:
                   W_NOITMDEF  -  No Menu Items Defined
                   W_NOMNUBEG  -  No Menu Definition.
                   W_INVTAGID  -  The specified Tag ID was invalid.  It
                      must match one of the Tag IDs in the current menu.
                   W_NOMNUDEF  -  No Menu Defined
                   W_NOTFOUND  -  Tag ID Not Found

Notes...........It is VERY important to check the return value from
                MnuBuild(); if any of the nested function calls fail,
                MnuBuild() will return an error to the caller.  Calling
                MnuGet() at that point could be disastrous!

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