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

Ends a menu definition

Header File.....TCXLmnu.h

Prototype.......IntT CTYP MnuEnd(TagT id, BytT mt, BytT bw, BytT tp,
                     AtrT ta, AtrT sa, AtrT na, AtrT ba);

Source File.....MNU\MNUEND.C

Arguments.......ti -  Tag ID of the item the selection bar will start with
                mt -  Menu Type (Page 21)
                bw -  Width of the section bar (zero means selection string
                      width)
                tp -  Offset position from start of the selection bar that
                      the menu item text will start.
                ta -  Attribute for menu text (See Appendix A)
                sa -  Attribute for Selection Character (See Appendix A)
                na -  Attribute for non-selectable text (See Appendix A)
                ba -  Attribute for the selection bar (See Appendix A)

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

Notes...........This function defines specific features/attributes of that
                menu.  This is one of the 4 functions that are required to
                process a menu.

                The Menu Type <mt> parameter is composed of a combination
                of:  one of MNU_HOR (horizontal), MNU_VER (vertical) or
                MNU_OMN (omnidirectional -- both horizontal and vertical);
                plus one or more of MNU_PUL (pull-down), MNU_NQS (no quick-
                select) and/or MNU_SAV (save bar-position).  If MNU_DSP is
                also used, a menu with no selectable items will be
                displayed without processing until  Esc  or a parent-menu
                hot-key is pressed.

                On horizontal menus, the <bw> parameter is the selection
                bar width, and <tp> is the offset from each item's position
                to it's selection text.  If <bw> is zero, the bar width is
                set to the length of the item.  On vertical menus, the
                selection bar width is the width of the menu window inside
                any frame, and <bw> is ignored.  <tp> is still the offset
                from each item's position to its selection text.

See Also: Appendix A

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