home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / l / libstore / !LibStore / Index / WimpLib / Menus < prev    next >
Encoding:
Text File  |  1992-10-27  |  1.9 KB  |  53 lines

  1. Index file for the "Menus" library.
  2.  
  3. DEFPROCstartup_menus(max_menus%) - sets up enough room for max_menus%
  4. menus.
  5.  
  6. DEFPROCsetupmenublock(maxitems%) - sets up the next menu. The first menu
  7. is 0, the second 1 and so on...
  8.  
  9. DEFPROCstndrdblock(addr%) - for internal use only.
  10.  
  11. DEFPROCmenu(menublock$,number%) - Sets up menu number% to menublock$.
  12. menublock$ should contain a string describing the menu in the following
  13. format:
  14.   | - break between items. Do not use this after the title.
  15.   H(title) - the title of the menu should be in between the brackets.
  16.   T(text) - the text for this item should be in the brackets.
  17.   M(option) - the options are: T to tick the item or D to put a dotted
  18.   line underneath the item.
  19.   U - the item is shaded.
  20.   S(menu) - makes menu the submenu for this item.
  21.   D(handle) - makes the window at handle the dialogue box for this item.
  22.   I(text) - uses indirected text
  23.   W - creates a writable item
  24.  
  25. DEFPROCcreatemenu(number%,x,y) - displays menu number% at x,y.
  26.  
  27. DEFPROCiconbarmenu(number%,dots%,x) - displays icon bar menu number% with
  28. dots% dotted lines at position x.
  29.  
  30. DEFFNdecodemenu(number%) - decodes the menu and puts it into the array
  31. menu$(). Returns the decoded string. Item 0 in the array is the main
  32. selection, item 2 the second, etc, etc.
  33.  
  34. DEFPROCtick(number%,item%) - ticks an item
  35.  
  36. DEFPROCuntick(number%,item%) - unticks an item
  37.  
  38. DEFPROCswitchtick(number%,item%) - switchs the tick of an item
  39.  
  40. DEFFNadjust - returns 0 if adjust is not pressed, other numbers otherwise.
  41.  
  42. DEFPROChandleadjust - handles adjust, re-opening the menu if adjust is
  43. pressed
  44.  
  45. DEFPROCshade, unshade, switchshade(number%,item%) - does the same as tick,
  46. untick, switchtick, but with the shade status of the item.
  47.  
  48. DEFPROCchangeitem(number%,item%,str$) - changes a non-indirect item.
  49.  
  50. DEFPROCchangeinditem(number%,item%,str$) - changes an indirect item.
  51.  
  52. DEFFNtestbit, setbit, clearbit - for internal use only.
  53.