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 - menudispall() redisplay all prompts http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 menudispall()       Redisplay all prompts
------------------------------------------------------------------------------
 Declaration
   menu.hdr

 Syntax
   func logical menudispall extern
   param value _MENU pMenu

 Arguments
   pMenu is the pointer to a previously created menu system. If 0, the
         default menu will be used.

 Return
   A logical, indicating the success of this function (if .f., an invalid
   menu was specified).

 Description
   This function redisplays all prompts in the specified menu using the
   defined color attributes for the various states of the prompts
   (highlighted/ non-highlighted, active/non-active, and hot keys). It
   is usually called from within menu handlers to initially display the
   prompts that were created "hidden", i.e. by calling menupromptnew()
   with the lDisplay argument set to .f.

 Example
   #define EXAMPLE_MENU
   #include example.hdr

   proc Test_menudispall
   vardef
      _MENU pMenu
   enddef
   
   clear
   pMenu = menunew()
   
   // Creates some prompts without displaying them
   //
   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. )
   
   ? "Press a key..." ; getkey()
   
   menudispall( pMenu )   // Displays all prompts
   menuclear( pMenu )
   
   endproc

   proc main
   Test_menudispall()
   endproc

See Also: menudispcurrent() menudispitem() menupromptnew()

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