home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / text / ncclib.zip / NCCMENU.DOC < prev    next >
Text File  |  1993-05-02  |  5KB  |  66 lines

  1. ┌──────────────────────────────────────────────────────────────────────────────┐
  2. │ Inherited from NccView                                                       │
  3. │      i.e.  Refer to NccView for additional instance variables and methods.   │
  4. └──────────────────────────────────────────────────────────────────────────────┘
  5. ┌─────────────────────────────────────────────────────────────────┬────────────┐
  6. │Instance Variables    Value      Description                     │  NccMenu   │
  7. ├─────────────────┬─────────────┬─────────────────────────────────┴────────────┤
  8. │Active           │   <lExp>    │ Flag indicating the state of NccMenu         │
  9. │Shadow           │   <lExp>    │ Flag indicating the use of shadow on NccMenu │
  10. │MouseActive      │   <lExp>    │ Flag indicating the use of mouse with the    │
  11. │                 │             │ standard Reader                              │
  12. │MenuReader       │   <bExp>    │ Codeblock used to process NccMenu            │
  13. │Prompts          │   <aExp>    │ Array of NccPrompt objects                   │
  14. │Border           │   <xExp>    │ 1..5 or string used to make border of NccMenu│
  15. │Bordercolor      │   <cExp>    │ Color string for border and lines in menu    │
  16. │Lettercolor      │   <cExp>    │ Color string for letter used to select prompt│
  17. │Grayedcolor      │   <cExp>    │ Not Active prompt Color                      │
  18. │Messagecolor     │   <cExp>    │ Color used for message                       │
  19. └─────────────────┴─────────────┴──────────────────────────────────────────────┘
  20.  
  21. ┌─────────────────────────────────────────────────────────────────┬────────────┐
  22. │Methods Functions               Description                      │  NccMenu   │
  23. ├──────────────────────────────┬──────────────────────────────────┴────────────┤
  24. │AddPrompt([<nId>],       ;    │ Id returned be selection                      │
  25. │          [<cTitle>],    ;    │ Title for prompt                              │
  26. │          [<lActive>],   ;    │ Active flag                                   │
  27. │          [<lChecked>],  ;    │ Checked flag                                  │
  28. │          [<cMessage>],  ;    │ Message to be display on Message line         │
  29. │          [<oSubMenu>]   ;    │ SubMenu                                       │
  30. │         )                    │                                               │
  31. │                              │                                               │
  32. │AddPromptLine()               │ Draw a line on the menu                       │
  33. │                              │                                               │
  34. │AddMessage([<nId>],      ;    │ Add a message to a prompt                     │
  35. │           [<cTitle>]    ;    │                                               │
  36. │          )                   │                                               │
  37. │                              │                                               │
  38. │Activate()                    │ Give control to menu reader                   │
  39. │                              │                                               │
  40. │Show([<nCurrent>])            │ display menu and exit                         │
  41. │                              │                                               │
  42. │Hide()                        │ hide displayed menu                           │
  43. │                              │                                               │
  44. │PromptCheck([<nCur>],     ;   │ test or toggle checked flag for a prompt      │
  45. │            [<lChecked>]  ;   │                                               │
  46. │           )                  │                                               │
  47. │                              │                                               │
  48. │PromptActive([<nCur>],    ;   │ test or toggle active flag for a prompt       │
  49. │             [<lActive>]  ;   │                                               │
  50. │            )                 │                                               │
  51. │                              │                                               │
  52. │PromptSubMenu([<nCur>],   ;   │ test or add submenu to a prompt               │
  53. │              [<oSub>]    ;   │                                               │
  54. │             )                │                                               │
  55. │                              │                                               │
  56. │MenuChoice([<nCur>],      ;   │ set pointer to current prompt in NccMenu      │
  57. │           [<lNoDisplay>] ;   │ <lNoDisplay> = Display <nCur> item now        │
  58. │          )                   │                                               │
  59. │                              │                                               │
  60. │MenuSelection()               │ return id of prompt selected                  │
  61. │                              │                                               │
  62. │KeySeek(<nKey>)               │ return pointer to where <nKey> was found in   │
  63. │                              │ prompts                                       │
  64. └──────────────────────────────┴───────────────────────────────────────────────┘
  65.  
  66.