Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - menudispitem() redisplay the specified prompt http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 menudispitem()      Redisplay the specified prompt
------------------------------------------------------------------------------
 Declaration
   menu.hdr

 Syntax
   func logical menudispitem extern
   param value _MENU pMenu, ;
         value int   iId

 Arguments
   pMenu is the pointer to a previously created menu system. If 0, the
         default menu will be used.
   iId   is the id number of the prompt.

 Return
   A logical, indicating the success of the function (if .f., an invalid
   menu pointer or a non-existing prompt was specified).

 Description
   This function displays the item specified with the iId argument, using a
   color attribute depending on the status of the item (current, active, or
   inactive).

 Example
   #define EXAMPLE_MENU
   #include example.hdr

   proc Test_menudispitem
   vardef
      _MENU pMenu
   enddef
   clear
   pMenu = menunew()
   
   menupromptnew( pMenu, 5, 5, " 1st prompt ", 1, .t., .f. )
   menupromptnew( pMenu, 6, 5, " 2nd prompt ", 2, .t., .f. )
   menupromptnew( pMenu, 7, 5, " 3rd prompt ", 3, .t., .f. )
   menupromptnew( pMenu, 8, 5, " 4th prompt ", 4, .t., .f. )
   
   // Displays the prompts with delays
   //
   menudispitem( pMenu, 1 ) ; waitms( 1000 )
   menudispitem( pMenu, 2 ) ; waitms( 1000 )
   menudispitem( pMenu, 3 ) ; waitms( 1000 )
   menudispitem( pMenu, 4 )
   
   menuclear( pMenu )
   endproc

   proc main
   Test_menudispitem()
   endproc

See Also: menudispall() menudispcurrent()

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