home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / VISUAL_B / CODIGO_1 / MNUWATCH / MWDEMO2.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1993-08-28  |  5.7 KB  |  127 lines

  1. frmMWDemo2
  2. Menu Watch Demo 2
  3. wwwwwwwwwwwwp
  4. wwwwwwwwwwwwp
  5. Form1
  6.     MenuWatch
  7. SKL_MenuWatch
  8. picStatusBarContainer
  9. pnHelp
  10. SSPanel
  11. MS Sans Serif
  12. pnStatus
  13. SSPanel
  14. MS Sans Serif
  15. FileMenu
  16. &File
  17. FileNewOpt
  18. FileOpenOpt
  19. &Open...
  20. FileSaveOpt
  21. &Save
  22. FileSaveAsOpt
  23. Save &As...
  24. FileSep1
  25. FilePrefSubMenu
  26. &Preferences
  27. FilePrefViewOpt
  28. &View...
  29. FilePrefDialogsOpt
  30. &Dialogs...
  31. FileSep2
  32. FileExitOpt
  33. E&xit
  34. EditMenu
  35. &Edit
  36. EditUndoOpt
  37. &Undo
  38. EditSep1
  39. EditCutOpt
  40. EditCopyOpt
  41. &Copy
  42. EditPasteOpt
  43. &Paste
  44. FileExitOpt_Click
  45.     Form_Load
  46. HelpFile
  47. MenuHelpText
  48. fSeparator
  49.     MenuState
  50. fMenuHelpInited
  51. MenuHelpX
  52. minMnuHlpIdx
  53. maxMnuHlpIdx
  54. InitMenuHelp
  55. MenuHelpIdx
  56. MenuWatch_Close
  57. pnHelp
  58. Visible
  59. MenuWatch_Open
  60. MenuWatch_Select
  61. ItemID
  62. FileExitOpt_Click
  63.  DESCRIPTION
  64.  Bring the App to an End
  65. Form_Load
  66.  DESCRIPTION
  67.  On Form Load, setup help file (this allows user to verify that help
  68.  still works while menu item is selected)w
  69. winhelp.hlp
  70. MenuHelpText
  71.  DESCRIPTION
  72.  Given the logical ID of the menu item selected and the current=
  73.  "MenuState" (Note, "MenuState" is not really used here since this simple=
  74.  app has only a single "MenuState"---the menu does not change), return
  75.  an appropriate menu help text snippet to be displayed in the status
  76.  areap
  77.  If the "MenuHelp" String array has not been initialized, then
  78.  initialize it now
  79.  Determine what menu text snippet to use... This is rather easy to
  80.  do since the menu for this app. stays the same throughout its
  81.  execution
  82.  Based on the value assigned to "MenuHelpIdx" above, return the
  83.  appropriate menu help snippet (Note that this simple app has only
  84.  a single "MenuState")
  85.  Here we simply make sure that the index is not out of range
  86.  for our array---if it is, return the empty string
  87. Switch to another application
  88. [Separator]
  89. Close
  90. [Separator]
  91. Maximize
  92. Minimize
  93. Restore
  94. Move, size, or close window
  95. File Menu
  96. File|New
  97. File|Open...
  98. File|Save
  99. File|Save As...
  100. [Separator]
  101. File|Preferences >
  102. File|Preferences|View...
  103. File|Preferences|Dialogs...
  104. [Separator]
  105. File|Exit
  106. Edit Menu
  107. Edit|Undo
  108. [Separator]
  109. Edit|Cut
  110. Edit|Copy
  111. Edit|Paste
  112. MenuWatch_Close
  113.  DESCRIPTION
  114.  When the "Menu Watch" control informs us that the user has completed=
  115.  any interaction with the menu, revert back to normal status bar
  116. MenuWatch_Open
  117.  DESCRIPTION
  118.  When the "Menu Watch" control informs us that the user has begun=
  119.  to interact with the menu, show the menu help status bara
  120. MenuWatch_Select
  121.  DESCRIPTION
  122.  When the "Menu Watch" control tells us that a menu option has been=
  123.  selected (highlighted), set the caption of the menu help status
  124.  bar to the appropriate text
  125.  Use the "MenuHelpText" function to get the appropriateh
  126.  menu help snippet
  127.