Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Nanforum Toolkit v2.1 Reference Guide - <b>ft_fill()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FT_FILL()
 Declare menu options for FT_MENU1()
------------------------------------------------------------------------------

 Syntax

      FT_FILL( <aSubArrayName>, <cMenuSelection>, <bFunction>,
               <lSelectable> ) -> NIL

 Arguments

     <aSubArrayName> is a sub-array of <acOptions> in FT_MENU1()
     denoting the group in which to include the selection --
     e.g., acOptions[1]

     <cMenuSelection> is the character string that will appear on
     the menu.

     <bFunction> is the code block to be executed when that menu
     option is selected.  i.e. {|| MyFunction() } would execute
     the function called MyFunction().  {|| .f.} would exit the
     FT_MENU1 and return to the calling routine.   {|| .T.} would
     do nothing.

     <lSelectable> is a logical variable that determines whether
     the corresponding menu option is selectable or not.

 Returns

     NIL

 Description

     FT_FILL() is a function used to set up the menu options prior
     to calling FT_MENU1().

 Examples

  FT_FILL( aOptions[1], 'A. Execute A Dummy Procedure' , {|| fubar()}, .t. )

  The above would be added to the sub-menu associated with the first menu
  bar item, would execute the function FUBAR() when that option was
  selected, and would be selectable.


  FT_FILL( aOptions[3], 'B. Enter Daily Charges'       , {|| .t.},     .f. )

  The above would be added to the sub-menu associated with the third menu
  bar item, and would be unselectable.


  FT_FILL( aOptions[2], 'C. Enter Payments On Accounts', {|| .t.},     .t. )

  The above would be added to the sub-menu associated with the second menu
  bar item, and would be selectable, but would do nothing when selected.


  FT_FILL( aOptions[4], 'C. Exit'                      , {|| .f.},     .t. )

  The above would be added to the sub-menu associated with the fourth menu
  bar item, and would be selectable, and would exit FT_MENU1() when chosen.

 Source: MENU1.PRG

 Author: Paul Ferrara

See Also: FT_MENU1()

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