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

 Syntax
   func logical menudispcurrent 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 is a utility function for menu handlers, it redisplays the current
   prompt.

 Example
   #define EXAMPLE_MENU
   #include example.hdr

   proc Test_menudispcurrent
   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. )
   
   menudispcurrent( pMenu )    // Displays the 1st prompt highlighted
   @ 10, 0 ?? "Press a key..." ; getkey() ; @ 10, 0 ?? space(14)
   menusetcurrent( pMenu, 3 )  // De-highlights the 1st prompt and displays
   menuclear( pMenu )
   
   endproc

   proc main
   Test_menudispcurrent()
   endproc

See Also: menudispall() menudispitem()

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