home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1996 December / PCWKCD1296.iso / vjplusb / activex / inetsdk / help / activex.aux / startup.mac < prev   
Text File  |  1996-07-12  |  11KB  |  269 lines

  1. #
  2. #  Main Menu Bar
  3. #
  4. AppendItem(`bb_menu',`mnu_file',`&File',`')
  5. AppendItem(`bb_menu',`mnu_edit',`&Edit',`')
  6. AppendItem(`bb_menu',`mnu_view',`&View',`')
  7. AppendItem(`bb_menu',`mnu_contents',`&Contents',`')
  8. AppendItem(`bb_menu',`mnu_tools',`&Tools',`')
  9. AppendItem(`bb_menu',`mnu_help',`&Help',`')
  10.  
  11. #
  12. #  File Menu
  13. #
  14. AppendItem(`mnu_file',`mnu_open',`&Open...\tCtrl+O',`Open()')
  15. AppendItem(`mnu_file',`',`',`')
  16. AppendItem(`mnu_file',`mnu_prtop',`&Print...\tCtrl+P',`Print()')
  17. AppendItem(`mnu_file',`mnu_prsetup',`Print &Setup...',`PrintSetup()')
  18. AppendItem(`mnu_file',`',`',`')
  19. AppendItem(`mnu_file',`mnu_exit',`E&xit',`Exit()')
  20.  
  21. #
  22. #  Edit Menu
  23. #
  24. #  Slack-Hack! Note that the params for CutPaste() happen to equate to
  25. #  the message defines for WM_CUT and WM_PASTE. I don't have a problem
  26. #  with it. MC.
  27. #
  28. #  HACK ALERT HACK ALERT  Grody grody!  ...Craig
  29. #
  30. AppendItem(`mnu_edit',`mnu_cut',`Cu&t\tCtrl+X',`CutPaste(768)')
  31. AppendItem(`mnu_edit',`mnu_copy',`&Copy\tCtrl+C',`CopyTopic()')
  32. AppendItem(`mnu_edit',`mnu_paste',`&Paste\tCtrl+V',`CutPaste(770)')
  33. AppendItem("mnu_edit","mnu_selall","&Select All\tCtrl+A","SelectAll()")
  34. DisableItem(`mnu_cut')
  35. DisableItem(`mnu_paste')
  36.  
  37. #
  38. #  View Menu
  39. #
  40. AppendItem(`mnu_view',`mnu_split2',`&Contents and Topic',`ConfigurePanes(2)')
  41. AppendItem(`mnu_view',`mnu_split1',`&Topic Only',`ConfigurePanes(1)')
  42. AppendItem(`mnu_view',`mnu_split3',`Contents &Only',`ConfigurePanes(3)')
  43. AppendItem(`mnu_view',`',`',`')
  44. AppendItem(`mnu_view',`mnu_vann',`&Annotation',`AnnotateTopic(1)')
  45. AppendItem(`mnu_view',`',`',`')
  46. AppendItem(`mnu_view',`mnu_split',`&Split',`KeyboardSplit()')
  47. AppendItem(`mnu_view',`',`',`')
  48. AppendItem(`mnu_view',`mnu_hnext',`&Next Highlight\tCtrl+D',`ScrollHighlight(1)')
  49. AppendItem(`mnu_view',`mnu_hprev',`&Prev Highlight\tCtrl+U',`ScrollHighlight(-1)')
  50.  
  51. #
  52. #  Contents Menu
  53. #
  54. AppendItem(`mnu_contents',`',`',`')
  55. AppendItem(`mnu_contents',`mnu_def',`&Define Subset...',`DefineFilter()')
  56. AppendItem(`mnu_contents',`',`',`')
  57.  
  58. #
  59. #  Tools Menu
  60. #
  61. ### Remove these two lines to eliminate the keyword index
  62. ###
  63. AppendItem(`mnu_tools',`mnu_keyw',`&Keyword Index...\tCtrl+K',`KeywordDialog("*.kwd")')
  64. AppendItem(`mnu_tools',`',`',`')
  65.  
  66. AppendItem(`mnu_tools',`mnu_prevsrch',`Find &Results...',`OpenSearchResults()')
  67. AppendItem(`mnu_tools',`mnu_back',`&History...',`ShowHistoryList()')
  68. AppendItem(`mnu_tools',`mnu_bkmk',`&Bookmarks...',`ShowBookmarkList()')
  69. AppendItem(`mnu_tools',`',`',`')
  70. AppendItem(`mnu_tools',`mnu_search',`&Find...\tCtrl+F',`Search()')
  71. AppendItem(`mnu_tools',`',`',`')
  72. AppendItem(`mnu_tools',`mnu_opt',`&Options...',`DoOptions()')
  73.  
  74. #
  75. #  Help Menu
  76. #
  77. ### add custom help items here
  78. ###
  79. AppendItem(`mnu_help',`mnu_helpcon',`&Help Index...\tF1',`BrowserHelp("",0)')
  80. AppendItem(`mnu_help',`',`',`')
  81. AppendItem(`mnu_help',`mnu_about',`&About...',`About()')
  82.  
  83. #
  84. #  Buttons for the main button bar
  85. #
  86. AppendItem(`bb_main',`btn_p3',`',`ConfigurePanes(3)')
  87. ButtonHelp("btn_p3","View Contents Only (Ctrl+Shift+C)")
  88. SetButtonBitmap(`btn_p3',`buttons',29,5,0)
  89.  
  90. AppendItem(`bb_main',`btn_p2',`',`ConfigurePanes(2)')
  91. ButtonHelp("btn_p2","View Both (Ctrl+Shift+S)")
  92. SetButtonBitmap(`btn_p2',`buttons',29,4,0)
  93.  
  94. AppendItem(`bb_main',`btn_p1',`',`ConfigurePanes(1)')
  95. ButtonHelp("btn_p1","View Topic Only (Ctrl+Shift+T)")
  96. SetButtonBitmap(`btn_p1',`buttons',29,3,0)
  97.  
  98. AppendItem(`bb_main',`',`',`')
  99.  
  100. AppendItem(`bb_main',`btn_magn',`',`')
  101. SetButtonBitmap(`btn_magn',`buttons',21,19,0)
  102. ButtonHelp(`btn_magn',`Zoom Text (Ctrl+Shift+Z)')
  103. AppendItem(`bb_main',`',`',`')
  104.  
  105. AppendItem(`bb_main',`btn_search',`',`Search()')
  106. SetButtonBitmap(`btn_search',`buttons',29,1,0)
  107. ButtonHelp("btn_search","Find (Ctrl+F)")
  108. AppendItem(`bb_main',`',`',`')
  109.  
  110. ### remove the next five lines to eliminate the keyword index
  111. ###
  112. AppendItem(`bb_main',`btn_keyw',`',`KeywordDialog("*.kwd")')
  113. ButtonHelp("btn_keyw","Keyword Index (Ctrl+K)")
  114. SetButtonBitmap(`btn_keyw',"buttons",22,22,0)
  115. AppendItem(`bb_main',`',`',`')
  116. ButtonWidth(`btn_keyw',0)
  117.  
  118. AppendItem("bb_main","btn_srchres","","OpenSearchResults()")
  119. ButtonHelp("btn_srchres","Find Results (Ctrl+Shift+F)")
  120. SetButtonBitmap("btn_srchres","buttons",26,26,0)
  121. AppendItem(`bb_main',`',`',`')
  122. AppendItem("bb_main","btn_bkmks","","ShowBookmarkList()")
  123. ButtonHelp("btn_bkmks","Bookmark List (Ctrl+Shift+B)")
  124. SetButtonBitmap("btn_bkmks","buttons",12,12,0)
  125. AppendItem(`bb_main',`',`',`')
  126. AppendItem("bb_main","btn_histlist","","ShowHistoryList()")
  127. ButtonHelp("btn_histlist","History List (Ctrl+Shift+H)")
  128. SetButtonBitmap("btn_histlist","buttons",27,27,0)
  129. AppendItem(`bb_main',`',`',`')
  130.  
  131. ###
  132. ### here is an example of a custom button for a help file
  133. ### note the use of an aux file bitmap for the button image...
  134. ###
  135. #AppendItem(`bb_main',`btn_brew',`',`ClickItem(`mnu_caffeine')')
  136. #SetButtonBitmap(`btn_brew',`!brewbtn.bmp',1,1,0)
  137. #ButtonHelp("btn_brew","Dr. GUI\'s Espresso Stand")
  138. #ButtonWidth(`btn_brew',0)
  139. #AppendItem(`bb_main',`',`',`')
  140.  
  141. AppendItem(`bb_main',`btn_help',`',`BrowserHelp("",0)')
  142. SetButtonBitmap(`btn_help',`buttons',29,14,0)
  143. ButtonHelp("btn_help","Help Index (F1)")
  144.  
  145. ButtonWidth(`btn_search btn_help btn_p1 btn_p2 btn_p3',0)
  146. ButtonWidth(`btn_srchres btn_bkmks btn_histlist btn_magn',0)
  147.  
  148. #
  149. #  Buttons for the topic panes
  150. #
  151. AppendItem(`bb_topic',`btn_back',`',`Back()')
  152. ButtonHelp(`btn_back',`Go Back (Ctrl+B)')
  153. SetButtonBitmap(`btn_back',`buttons',29,8,0)
  154.  
  155. AppendItem(`bb_topic',`',`',`')
  156. AppendItem(`bb_topic',`btn_prev',`',`PrevNextTopic(0)')
  157. ButtonHelp(`btn_prev',`Previous in Contents (Ctrl+<)')
  158. SetButtonBitmap(`btn_prev',`buttons',29,9,0)
  159.  
  160. AppendItem(`bb_topic',`btn_next',`',`PrevNextTopic(1)')
  161. ButtonHelp(`btn_next',`Next in Contents (Ctrl+>)')
  162. SetButtonBitmap(`btn_next',`buttons',29,10,1)
  163.  
  164. AppendItem(`bb_topic',`',`',`')
  165.  
  166. AppendItem(`bb_topic',`btn_lprev',`',`JumpList(-1)')
  167. SetButtonBitmap(`btn_lprev',`buttons',29,28,0)
  168. ButtonHelp(`btn_lprev',`Previous in List (Ctrl+Shift+<)')
  169.  
  170. AppendItem(`bb_topic',`btn_lnext',`',`JumpList(1)')
  171. SetButtonBitmap(`btn_lnext',`buttons',29,29,1)
  172. ButtonHelp(`btn_lnext',`Next in List (Ctrl+Shift+>)')
  173.  
  174. ButtonWidth(`btn_lprev btn_lnext',0)
  175. AppendItem(`bb_topic',`',`',`')
  176.  
  177. AppendItem(`bb_topic',`btn_copy',`',`CopyTopic()')
  178. ButtonHelp(`btn_copy',`Copy (Ctrl+C)');
  179. SetButtonBitmap(`btn_copy',`buttons',29,6,0)
  180. AppendItem(`bb_topic',`',`',`')
  181. AppendItem(`bb_topic',`btn_print',`',`PrintTopic()')
  182. ButtonHelp(`btn_print',`Print (Ctrl+P)')
  183. SetButtonBitmap(`btn_print',`buttons',29,7,0)
  184. AppendItem(`bb_topic',`',`',`')
  185. AppendItem(`bb_topic',`btn_ann',`',`AnnotateTopic(1)')
  186. ButtonHelp(`btn_ann',`View Annotation (Ctrl+Shift+A)')
  187. SetButtonBitmap(`btn_ann',`buttons',29,11,0)
  188. AppendItem(`bb_topic',`',`',`')
  189. AppendItem(`bb_topic',`btn_sync',`',`SyncTopic(1)')
  190. ButtonHelp(`btn_sync',`Sync Contents (Ctrl+Y)')
  191. SetButtonBitmap(`btn_sync',`buttons',29,13,0)
  192. AppendItem(`bb_topic',`',`',`')
  193. AppendItem("bb_topic","btn_highlights","","ToggleHighlights()")
  194. SetButtonBitmap("btn_highlights","buttons",25,25,0)
  195. ButtonHelp("btn_highlights","Highlights (Ctrl+H)")
  196. ButtonWidth(`btn_copy btn_print btn_ann btn_sync',0)
  197. ButtonBarJustify(`bb_topic',1)
  198. ButtonWidth(`btn_prev btn_next',0)
  199. ButtonWidth(`btn_back btn_highlights',0)
  200. DisableItem(`btn_back')
  201.  
  202. #
  203. #  magnifier settings
  204. #
  205. AppendItem("btn_magn","mnu_75","75%","SizeFont(75)")
  206. AppendItem("btn_magn","mnu_90","90%","SizeFont(90)")
  207. AppendItem("btn_magn","mnu_100","100%","SizeFont(100)")
  208. AppendItem("btn_magn","mnu_110","110%","SizeFont(110)")
  209. AppendItem("btn_magn","mnu_125","125%","SizeFont(125)")
  210.  
  211. #
  212. #  Keyboard accelerators
  213. #
  214. #  Shift states:
  215. #    1 == Shift
  216. #    2 == Ctl
  217. #
  218. #
  219. AddAccelerator(9,0,`NextControl()')       # Tab
  220. AddAccelerator(9,1,`PreviousControl()')   # Shift-Tab
  221. AddAccelerator(0x75,0,`NextPane()')       # F6 == Focus to next pane.
  222. AddAccelerator(0x75,1,`PreviousPane()')   # Shift-F6 == Focus to previous pane.
  223. AddAccelerator(0x70,0,`ClickItem("btn_help")')    # F1 == Help
  224. AddAccelerator(0x73,0x80,`ClickItem("btn_keyw")') # F4     == Keywords
  225. AddAccelerator(0x4b,0x82,`ClickItem("btn_keyw")') # Ctrl-K == Keywords
  226. AddAccelerator(0x74,0x80,`ClickItem("btn_search")')  # F5     == Find Dlg
  227. AddAccelerator(0x46,0x82,`ClickItem("btn_search")')  # Ctrl-F == Find Dlg
  228.  
  229. #
  230. # Back      == ^R == 0x52 == 82
  231. # List Prev == '-' == 0x6d
  232. # List Next == '+' == 0x6b
  233. # Next      == shift right arrow.
  234. # Prev      == shift left arrow.
  235. #
  236. AddAccelerator(0x42,0x82,`ClickItem("btn_back")')   # Ctrl-B == Back
  237. AddAccelerator(0xBC,0x83,`ClickItem("btn_lprev")')  # Ctrl+Shift+< == list prev
  238. AddAccelerator(0xBE,0x83,`ClickItem("btn_lnext")')  # Ctrl+Shift+> == list next
  239. AddAccelerator(0xBC,0x82,`ClickItem("btn_prev")')   # Ctrl+> == prev topic.
  240. AddAccelerator(0xBE,0x82,`ClickItem("btn_next")')   # Ctrl+> == next topic.
  241. #
  242. # F8 == keyboard selection mode.
  243. #
  244. AddAccelerator(0x77,0,`KeyboardSelect()')     # F8 == Keyboard selection mode.
  245. #
  246. #
  247. AddAccelerator(65,0x02,`ClickItem("mnu_selall")')       # Ctrl+A == Select all
  248. AddAccelerator(66,0x83,`ClickItem("btn_bkmks")')        # Ctrl+Shift+B == Bookmark dlg.
  249. AddAccelerator(67,0x02,`ClickItem("btn_copy")')         # Ctrl+C == Edit-Copy
  250. AddAccelerator(0x2D,0x02,`ClickItem("btn_copy")')         # Ctrl+Insert == Edit-Copy
  251. AddAccelerator(68,0x82,`ScrollHighlight(1)')            # Ctrl+D == Next Highlight.
  252. AddAccelerator(70,0x83,`ClickItem("mnu_prevsrch")')     # Ctrl+Shift+F == Prev find res.
  253. AddAccelerator(72,0x83,`ClickItem("mnu_back")')         # Ctrl+Shift+H == History list dlg.
  254. AddAccelerator(79,0x82,`ClickItem("mnu_open")')         # Ctrl+O == Open Dlg.
  255. AddAccelerator(80,0x82,`ClickItem("mnu_prtop")')        # Ctrl+P == Menu print.
  256. AddAccelerator(85,0x82,`ScrollHighlight(-1)')           # Ctrl+U == Prev Highlight.
  257. AddAccelerator(86,0x02,`ClickItem("mnu_paste")')        # Ctrl+V == Edit paste.
  258. AddAccelerator(0x2D,0x01,`ClickItem("mnu_paste")')        # Shift+Ins == Edit paste.
  259. AddAccelerator(88,0x02,`ClickItem("mnu_cut")')          # Ctrl+X == Edit cut.
  260. AddAccelerator(0x2E,0x01,`ClickItem("mnu_cut")')          # Shift+Del == Edit cut.
  261. AddAccelerator(0x48,0x82,`ClickItem("btn_highlights")') # Ctrl+L == Toggle highlights.
  262. AddAccelerator(0x59,0x82,`ClickItem("btn_sync")')       # Ctrl+Y == Sync
  263. AddAccelerator(0x43,0x02,`ClickItem("btn_copy")')       # Ctrl+C == Copy Topic.
  264. AddAccelerator(0x53,0x83,`ClickItem("btn_p2")')   # Ctrl+Shift+S == View Contents & Topic
  265. AddAccelerator(0x54,0x83,`ClickItem("btn_p1")')   # Ctrl+Shift+T == View Topic only
  266. AddAccelerator(0x43,0x83,`ClickItem("btn_p3")')   # Ctrl+Shift+C == View Contnets Only
  267. AddAccelerator(0x41,0x83,`ClickItem("btn_ann")')  # Ctrl+Shift+A == View Annotation
  268. AddAccelerator(0x5a,0x83,`ClickItem("btn_magn")') # Ctrl+Shift+Z == Zoom Text
  269.