SP Menu Functions


SLOTUSMENU()   1-2-3 style menu
PULLDN()       Pulldown menu creator, handler
PSTABMENU()    Popup tabular (grid style) )menu
RAT_MENU2()    Mouseable MENU TO emulation
STABMENU()     Tabular (grid style) menu
MENU_V()       Vertical popup menu from variable # parameters
BUNGDROP()     Causes dropdown during BUNGEE() menu def sequence
BUNGEE()       Mouseable, multi-level dropdown menu with triggers
BUNGEND()      Ends a BUNGEE() menu array definition sequence
BUNGOPTION()   Adds option during a BUNGEE() menu definition sequence
BUNGSTART()    Starts a BUNGEE() menu array definition sequence
BUNGUNDROP()   Ends dropdown during BUNGEE() menu def sequence

 

SP_PSTABMENU

PSTABMENU()

  Short:
  ------
  PSTABMENU() Popup tabular (grid style) )menu

  Returns:
  --------
  <nSelection> => Number of menu option selected

  Syntax:
  -------
  PSTABMENU(nTop,nLeft,nBottom,nRight,aPrompts,[cTitle],[nStart])

  Description:
  ------------
  Pops up a tabular (grid) menu based on an array of
  prompts passed

  as <aPrompts>. Dimensions of the menu table will be
  inside of the <nTop,nLeft,nBottom,nRight> dimensions for the popup
  box. Number of menu rows is the number of rows inside the box.
  Number of menu columns is determined based on number of rows.
  Prompts are layed out in a snaking fashion :

     e.g. (for a 3 row table...)
       column 1, row 1  = 1st prompt
       column 1, row 2  = 2nd prompt
       column 1, row 3  = 3rd prompt
       column 2, row 1  = 4th prompt

  Pressing a character will move to the next matching
  prompt with that first letter. Left-right and up-down perform a
  snaking pattern

  Pressing ENTER causes selection to be made, and the
  number of the selection to be returned.

  Pressing ESCAPE returns 0.

  [cTitle]  is a itle for the popup box

  [nStart]  is an optional starting option. Default is 1.

  Examples:
  ---------
   nChoice := pstabmenu(10,10,14,70,{"One","two","three","four",;
                        "five","six","seven","eight",;
                         "nine","ten","eleven","twelve"},"Select:")

  Source:
  -------
  S_TABMEN.PRG