home *** CD-ROM | disk | FTP | other *** search
/ Interplanetary Explorer / EXPLORER.ISO / tbkmm.sbk (.txt) < prev    next >
Asymetrix ToolBook File  |  1994-09-04  |  32KB  |  460 lines

  1. <BookPath>
  2. :HDMEDIAPATH
  3. jwJpISimPjmIeAEos
  4. Tms Rmn
  5. Tms Rmn
  6. CDBSE&File
  7. &Open...    Ctrl+O
  8. &Save    Ctrl+S
  9. Save &As...
  10. saveas
  11. &Import...
  12. import
  13. &Export...
  14. export
  15. Print Set&up...
  16. printsetup
  17. &Print Pages...    Ctrl+P
  18. printpages
  19. Prin&t Report...
  20. printreport
  21. Send &Mail...
  22. sendmail
  23. &Run...
  24. E&xit    Alt+F4
  25. &Edit
  26. &Undo    Ctrl+Z
  27. Cu&t    Ctrl+X
  28. &Copy    Ctrl+C
  29. &Paste    Ctrl+V
  30. paste
  31. C&lear    Del
  32. clear
  33. Select &All    Shift+F9
  34. selectall
  35. Select Pa&ge    Shift+F12
  36. selectpage
  37. &Size to Page    F11
  38. sizetopage
  39. F&ind...    F5
  40. Re&place...
  41. replace
  42. Aut&hor    F3
  43. author
  44. &Text
  45. &Character...    F6
  46. character
  47. &Paragraph...    F7
  48. paragraph
  49. &Regular    Ctrl+Space
  50. regular
  51. &Bold    Ctrl+B
  52. &Italic    Ctrl+I
  53. italic
  54. &Underline    Ctrl+U
  55. underline
  56. Stri&keout    Ctrl+K
  57. strikeout
  58. Superscrip&t/Subscript
  59. superscriptSubscript
  60. &Normal Script
  61. normalscript
  62. Su&bscript    Ctrl+L
  63. subscript
  64. Su&perscript    Ctrl+Shift+L
  65. superscript
  66. &Show Hotwords    F9
  67. showhotwords
  68. &Page
  69. &Next    Alt+Right
  70. &Previous    Alt+Left
  71. previous
  72. &First    Alt+Up
  73. first
  74. &Last    Alt+Down
  75. &Back    Shift+F2
  76. &History...    Ctrl+F2
  77. history
  78. N&ew Page    Ctrl+N
  79. newpage
  80. &Help
  81. &Contents    F1
  82. contents
  83. Status &Bar    F12
  84. statusbar
  85.  BOOK SCRIPT FOR THE MULTIMEDIA SYSTEM 
  86. tbkMCIchk cmd,notif,req,brk
  87. ZretVal
  88. sysErrorNumber 
  89. tbkmci(
  90. syserrornumber<>0 
  91. tbkmmerrorstring(
  92. tbkBitmapChk 
  93.         -- When 
  94. ]TBKBMP.DLL standalone, you should 
  95. modify 
  96.         -- function 
  97. use the bitmap 
  98.  reporter
  99. tbkbmperrorstring(
  100. brk<>
  101. --Cover functions 
  102. --These allow authors 
  103. pass 
  104. device alias instead 
  105. tbkMCIPositionWindow devAlias,windowPos,flags
  106. Zhwnd
  107. 9("status" && 
  108. 3 && "
  109. ","")
  110. tbkPositionWindow(
  111. tbkMCICenterWindow 
  112.  && "
  113. ","")
  114. tbkCenterWindow(
  115. tbkBitmapPositionWindow 
  116.  && "
  117. tbkBitmapCenterWindow 
  118.  && "
  119. tbkMCIGetWindowRect 
  120.  && "
  121. ","")
  122. tbkGetWindowRect(
  123. tbkBitmapGetWindowRect 
  124.  && "
  125. 4s_mminit
  126. tbkMMInitializeSystem 
  127.     -- guard against 
  128. 4having been restored!
  129. { <> 
  130. stuff used 
  131. Hwidgets
  132. X"tbkwin.dll"
  133. YieldApp()
  134.  <> 0
  135. "TBKWIN.
  136. xfound. Some 
  137. X may 
  138. xwork"
  139. X"tbkdlg.
  140. OpenDlg(
  141.  <> 0
  142. "TBKDLG.
  143. readdmm
  144. multimedia
  145. "winhelp.exe 
  146. .hlp"
  147. tbkmmdevices 
  148. 4s_mmdevices
  149. f("Multimedia") 
  150. c"Help" 
  151. -- stub so some 
  152.  will 
  153.  without ES boxes
  154. checkdevice
  155. -- General utility 
  156. -- Someday, ToolBook 
  157. Thave built-
  158. data type checking    
  159. isNumber x
  160. x + 0
  161. --repair 3D 
  162. resizing them
  163. sized
  164. Zsnap, txCN, hi, lo
  165. txClassName 
  166. ; <> 
  167. "Repair 3D 
  168. f"&Yes" 
  169. "&No"
  170. c"No"
  171. sysSuspendMessages 
  172. recessed 
  173. c"3DFrame"
  174. + 15, 
  175. + 15,\
  176. + 15, 
  177. "3DField"
  178. "3DRect"
  179. znothing
  180. - 15, 
  181. - 15,\
  182. - 15, 
  183. + 15, 
  184. + 15,\
  185. + 15, 
  186. -- Slider control 
  187. begins here
  188. -- NOTES ABOUT IDENTIFIERS
  189. -- s___ prefix     ->
  190. handler 
  191. only 
  192. c"Thumb"
  193. ___setSliderLimits 
  194. 4s___v, s___min, s___max, s___p
  195. down\
  196. prevent updating 
  197. mouse 
  198. xmoved
  199. "HSliderThumb"
  200. loc - 
  201. ___slidePos(
  202. "VSliderThumb"
  203. sliderPosition 
  204. ___snapSlider\
  205. (1 - 
  206. glide 
  207. width 
  208. height 
  209.  p, s1, s2
  210. b(0,(p - s1) /(s2 - s1))
  211. thumb 
  212.             -- Another 
  213. controlling 
  214. OldMin 
  215. OldMax 
  216. j(1,(
  217. b(0,p)))
  218. "vSliderThumb"
  219. pOffset 
  220. ) * (1-p)
  221. newPos 
  222. "hSliderThumb"
  223. ) * p
  224.             -- Restore state 
  225. detentList 
  226. detents
  227. catchRange 
  228. 0 <> 
  229. ends 
  230. -- This initialization usually 
  231. runs ONCE, unless 
  232. app calls
  233. tbkmmInitializeSystem 
  234. asure MME 
  235. loaded
  236. X"mmsystem.
  237. killtbkmmsbk 
  238.         -- 
  239. private (exported, but undocumented)
  240.     tbkmmloadextensions( )
  241.         -- The 
  242. these are 
  243. standard 
  244. L entry points
  245.     tbkmmversion()
  246.         -- MCI central interface
  247.         -- parallel 
  248. MMSYSTEM
  249.  tbkTimerStart( 
  250.     tbkTimerStop( 
  251.  tbkTimerCapability()
  252.         -- Utility 
  253. \    MilliSecFromMSF( 
  254. \    MilliSecFromHMS( 
  255. \    MilliSecFromSMPTE( 
  256.     MSFFromMilliSec( 
  257.     HMSFromMilliSec( 
  258.     SMPTEFromMilliSec( 
  259. -- Translation 
  260.         tbkMMTranslate( 
  261.  <> 0
  262. "TBKMM.
  263. link failed"
  264. support
  265.  <> 0 
  266. -- End 
  267. Script
  268. .&+    +E
  269. tbkmmerrorstring
  270. tbkmci
  271. tbkMCIchk
  272. .&+    +E
  273. tbkmmerrorstring
  274. tbkBitmap
  275. tbkBitmapChk
  276. tbkMCI
  277. %tbkPositionWindow
  278. window handle
  279. status
  280. tbkMCIPositionWindow
  281. tbkCenterWindow
  282. tbkMCI
  283. window handle
  284. status
  285. tbkMCICenterWindow
  286. tbkBitmap
  287. window
  288. %tbkPositionWindow
  289. status
  290. tbkBitmapPositionWindow
  291. tbkBitmap
  292. tbkCenterWindow
  293. window
  294. status
  295. tbkBitmapCenterWindow
  296. tbkMCI
  297. tbkGetWindowRect
  298. window handle
  299. status
  300. tbkMCIGetWindowRect
  301. tbkBitmap
  302. window
  303. tbkGetWindowRect
  304. status
  305. tbkBitmapGetWindowRect
  306. tbkMMInitializeSystem
  307. s_mminit
  308. enterSystem
  309. tbkdlg.dll
  310. P*readdmm
  311. OpenDlg
  312. TBKWIN.DLL not found. Some widgets may not work
  313. TBKDLG.DLL not found. Some widgets may not work
  314. s_mminit
  315. tbkwin.dll
  316. YieldApp
  317. enterbook
  318. winhelp.exe tbkmm.hlp
  319. multimedia
  320. s_mmdevices
  321. tbkmmdevices
  322. P*readdmm
  323. author
  324. author
  325. Multimedia
  326. &Multimedia
  327. readdmm
  328. checkdevice
  329. isNumber
  330. ^recessed
  331. 3DFrame
  332. author
  333. 3DField
  334. Repair 3D object after resizing?
  335. txClassName
  336. 3DRect
  337. recessed
  338. sized
  339.  "___setSliderLimits
  340. false
  341. txClassName
  342. Thumb
  343. buttonDown
  344. 1,"!#
  345. s___p
  346. false
  347. s___v
  348. HSliderThumb
  349. ___slidePos
  350. s___max
  351. VSliderThumb
  352. txClassName
  353. s___min
  354. buttonStillDown
  355. s___v
  356. false
  357. s___p
  358. HSliderThumb
  359. ___slidePos
  360. s___max
  361. VSliderThumb
  362. txClassName
  363. s___min
  364. i0___snapSlider
  365. sliderPosition
  366. buttonUp
  367. s___v
  368. HSliderThumb
  369. s___max
  370. VSliderThumb
  371. txClassName
  372. s___min
  373. glide
  374. ___setSliderLimits
  375. ___slidePos
  376. sliderPosition
  377.  "___setSliderLimits
  378. newPos
  379. OldMax
  380. hSliderThumb
  381. pOffset
  382. group
  383. SliderThumb
  384. s___max
  385. OldMin
  386. vSliderThumb
  387. txClassName
  388. s___min
  389. thumb
  390. sliderPosition
  391. sliderPosition
  392. detents
  393. detentList
  394. ___snapSlider
  395. TBKMM.DLL link failed
  396. tbkmmloadextensions
  397. tbkmmversion
  398. tbkmmerrorstring
  399. ,&Ub5
  400. tbkMCI
  401. tbkTimerStart
  402. tbkTimerStop
  403. tbkTimerCapability
  404. MilliSecFromMSF
  405. ,    UN+
  406. MilliSecFromHMS
  407. MilliSecFromSMPTE
  408. MSFFromMilliSec
  409. HMSFromMilliSec
  410. SMPTEFromMilliSec
  411. tbkMMTranslate
  412. tbkGetWindowRect
  413. tbkPositionWindow
  414. tbkCenterWindow
  415. ,    Uroupg    
  416. mmsystem.dll
  417. killtbkmmsbk
  418. P*readdmm
  419. tbkmm.dll
  420. tbkmmerrorstring
  421. s_mmdevices
  422. jtbkmmloadextensions
  423. tbkmmInitializeSystem
  424. s_mminit
  425. mmsystem
  426. tbkmmInitializeSystem
  427. Iitemnum
  428. Microsoft Windows with Multimedia is not present. No multimedia devices or widgets will work.
  429. killtbkmmsbk
  430. tbkmm.sbk
  431. itemnum
  432. Cancel
  433. Warning! Altering the script for this system book may cause multimedia applications to break!
  434. Proceed
  435. author
  436. killtbkmmsbk
  437. "Microsoft Windows 
  438. fMultimedia 
  439. xpresent. No multimedia devices 
  440. widgets will work."
  441. itemnum( 
  442. I tmplist
  443. "Warning! Altering the 
  444. 8may cause 
  445. applications 
  446. f"Proceed" 
  447. "Cancel"
  448. DlgTitle
  449. tbkmmversion
  450. Multimedia System Book
  451. DlgTitle
  452. Multimedia System Book
  453. author
  454. emnum
  455. Microsoft Windows with Multimedia is n
  456. tering the script for this system book may cause multimedia applications to break!
  457. Proceed
  458. Cancel
  459. Proceed
  460.