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

Assign before/after functions to current item.

Header File.....TCXLmnu.h

Prototype.......IntT CTYP ItmFun(VFvCP bf, VFvCP af);

Source File.....MNU\ITMFUN.C

Arguments.......bf -  Before Function (NULL if not used)
                af -  After Function (NULL if not used)

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

Notes...........The call to this function must appear immediately after the
                call to the MnuItm() to which it relates.  During the
                processing of the menu, when the user moves to the item,
                the before function gets called.  When the user leaves the
                item, the after function gets called.

                This powerful feature allows you to do some advanced stuff
                with menus, but must be used very carefully.  One possible
                use of ItmFun() is to define a before function that opens a
                window and writes some text in it, and an after function
                which closes that window (there is an example of this in
                the demonstration program).  When the user moved to that
                menu item, the window would open up and display text, then
                when the user left that menu item, the window would
                automatically close.

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