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

Defines a menu item

Header File.....TCXLmnu.h

Prototype.......IntT CTYP MnuItm(BytT wr, BytT wc, ChrP ps, ChrT sc,
                     TagT id, BytT fm, VfvCP fs, KeyT kc, TagT ht);

File............MNU\MNUITM.C

Arguments.......wr -  Window Row
                wc -  Window Column
                ps -  Menu Item String
                sc -  Quick Selection character.
                      This is often the first letter of the menu item.
                id -  Unique tag identifier for this menu item.  A menu tag
                      id may be assigned arbitrarily by the programmer, but
                      some kind of design system should be implemented --
                      and may, in fact, be similar to the help tags.  See
                      the demonstration program for one implementation.
                fm -  Feature Masks (Page 21)
                fs -  Function to call when item is selected
                kc -  Keycode of the key which will select this item from
                      anywhere within the menu structure (See Appendix B
                      for a list of keycodes).  This allows the user to
                      call this menu's select function even if not
                      currently processing its menu.
                ht -  Help Tag for this item

Returns.........ERR_NUL  -  No Error
                ERR_ARG  -  Argument Failure
                ERR_MEM  -  Memory Allocation Failure
                   TcxlErr contains:
                   W_NOMNUBEG  -  No Menu Definition.  See MnuDef()

Notes...........This is one of the 4 functions that are required to process
                a menu.

See Also: Appendix B

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