home *** CD-ROM | disk | FTP | other *** search
/ Using Asymetrix Multimedi…ool Book Special Edition / SE_UAMT.iso / examples / 09mtb06.tbk (.txt) < prev    next >
Encoding:
Asymetrix ToolBook File  |  1995-11-01  |  142.5 KB  |  523 lines

  1. Using notify
  2. <BookPath>
  3. :HDMEDIAPATH
  4. System
  5. info_LastSavedBy
  6. 10/26/95 7:36:08 PM
  7. info_LastSaved
  8. Erik Reitan
  9. Arial
  10. Erik Reitan
  11. Arial
  12. Arial
  13. 10/26/95 7:35:12 PM
  14. 10/26/95 7:43:15 PM
  15. Arial
  16. Erik Reitan
  17. 6/95 7:40:27 PM
  18. Erik Reitan
  19. waveAudio
  20. Wave Audio driver not found!
  21. enterBook
  22. "waveAudio" 
  23. sysSupportedMedia
  24. "Wave 
  25. % driver 
  26. xfound!"
  27. 3DVideo
  28. Page "Using notify"
  29. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  30. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  31. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  32. Page id 2
  33. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  34. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  35. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  36. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  37. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  38. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  39. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  40. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  41. Page id 3
  42. 9507251716271924423826373122
  43. ASYM_TpID
  44. Backdrop
  45. _ASYMA_LockMove
  46. Multimedia ToolBook
  47. Creating Custom Menussions
  48. Playing a wave file and allowing other actionss
  49. enterpage
  50. ASYM_Reset
  51. Using notify
  52. This script in the button to the right will display the menu items of the standard Help menu. A local variable named myMenuChoice is set to the value that the popupMenu() function returns. , the author will have one option called Control. 
  53. example
  54. Square,
  55. +!popMenu
  56. MenuMark
  57. !MpopMenu
  58. TB30WIN.DLL
  59. Red,Blue,}
  60. {Color,
  61. Round,},
  62. menuList
  63. {Shape,
  64. buttonDown
  65. linkDLL "TB30WIN.
  66. INT popMenu(WORD,STRING,
  67. menuList = "{Shape," & "Square," & "Round,}," & \
  68. "{Color," & "Red,Blue,}"
  69. lwindowHandle 
  70. pageScroll 
  71. "MenuMark", 
  72. -- create a 
  73. named 'markMenu' 
  74. )the location you need 
  75. display 
  76. Display a popup menu
  77. Using the popupMenu() function OpenScripttcriptt
  78. CDBSE&File
  79. &Open...    Ctrl+O
  80. &Save    Ctrl+S
  81. Save &As...
  82. saveas
  83. &Import...
  84. import
  85. &Export...
  86. export
  87. Print Set&up...
  88. printsetup
  89. &Print Pages...    Ctrl+P
  90. printpages
  91. Prin&t Report...
  92. printreport
  93. Send &Mail...
  94. sendmail
  95. &Run...
  96. E&xit    Alt+F4
  97. &Edit
  98. &Undo    Ctrl+Z
  99. Cu&t    Ctrl+X
  100. &Copy    Ctrl+C
  101. &Paste    Ctrl+V
  102. paste
  103. C&lear    Del
  104. clear
  105. Select &All    Shift+F9
  106. selectall
  107. Select Pa&ge    Shift+F12
  108. selectpage
  109. &Size to Page    F11
  110. sizetopage
  111. F&ind...    F5
  112. Re&place...
  113. replace
  114. Aut&hor    F3
  115. author
  116. &Text
  117. &Character...    F6
  118. character
  119. &Paragraph...    F7
  120. paragraph
  121. &Regular    Ctrl+Space
  122. regular
  123. &Bold    Ctrl+B
  124. &Italic    Ctrl+I
  125. italic
  126. &Underline    Ctrl+U
  127. underline
  128. Stri&keout    Ctrl+K
  129. strikeout
  130. Superscrip&t/Subscript
  131. superscriptSubscript
  132. &Normal Script
  133. normalscript
  134. Su&bscript    Ctrl+L
  135. subscript
  136. Su&perscript    Ctrl+Shift+L
  137. superscript
  138. &Show Hotwords    F9
  139. showhotwords
  140. &Page
  141. &Next    Alt+Right
  142. &Previous    Alt+Left
  143. previous
  144. &First    Alt+Up
  145. first
  146. &Last    Alt+Down
  147. &Back    Shift+F2
  148. &History...    Ctrl+F2
  149. history
  150. N&ew Page    Ctrl+N
  151. newpage
  152. &Help
  153. &Contents    F1
  154. contents
  155. Status &Bar    F12
  156. statusbar
  157. CDBSAM&File
  158. &Open...    Ctrl+O
  159. &Save    Ctrl+S
  160. Save &As...
  161. saveas
  162. &Import...
  163. import
  164. &Export...
  165. export
  166. Print Set&up...
  167. printsetup
  168. &Print Pages...    Ctrl+P
  169. printpages
  170. Prin&t Report...
  171. printreport
  172. Send &Mail...
  173. sendmail
  174. &Run...
  175. E&xit    Alt+F4
  176. &Edit
  177. &Undo    Ctrl+Z
  178. Cu&t    Ctrl+X
  179. &Copy    Ctrl+C
  180. &Paste    Ctrl+V
  181. paste
  182. C&lear    Del
  183. clear
  184. Select &All    Shift+F9
  185. selectall
  186. Select Pa&ge    Shift+F12
  187. selectpage
  188. &Size to Page    F11
  189. sizetopage
  190. F&ind...    F5
  191. Re&place...
  192. replace
  193. Aut&hor    F3
  194. author
  195. &Media
  196. Media
  197. Media Test Menu
  198. notifybefore 
  199. "0,0"
  200. "0,0" 
  201. moved
  202.     ssm = sysSuspendMessages
  203. notifyBefore ASYM_Reset
  204. {loc;
  205. buttonClick 
  206. rightButtonClick 
  207. enterpage
  208. moved
  209. ASYM_Reset
  210. buttonDown
  211. buttonUp
  212. buttonClick
  213. buttonDoubleClick
  214. rightButtonDown
  215. rightButtonUp
  216. rightButtonClick
  217. rightButtonClick
  218. rightButtonDoubleClick
  219. new-4
  220. Music
  221. 24mtb01.wav
  222. e\bonanza
  223.  %+ %,  
  224. %%4+%%%%,%,,4,,,,%,%,,% 
  225. %,+ +
  226.  %%%%%%+%44+%%,,,8,,,%,%+
  227. %4+ +
  228.  %%  ++%
  229. %+%%+%%% +%%%%%%%, %
  230.  %%%%% 
  231. + %%+ %  4%+% 
  232.  4 % 
  233. %% %%
  234.  %%%+%+% %%%%4%% % 
  235. % %   %+% %+ ++
  236.     +%
  237. % %%%
  238. ###!#
  239. *;*&)
  240. &9))(
  241. '&*55
  242. ()5*(
  243. )9*)*
  244. '5&('
  245. &)).('
  246. H2)&)
  247. ))($$
  248. $(*$$(
  249. &*?D$
  250. ($95)&)(
  251. '($;'
  252. '()*K25
  253. '(****)
  254. $.**)
  255. $$*&(
  256. $(5('('
  257. $&9)(
  258. ')*;)
  259. $$$))
  260. $$**$
  261. $)*$)
  262. )*5$.)
  263. )*9;*).(
  264. $***)**$'
  265. $$*$$
  266. .)5*$
  267. ).()*))'
  268. )*))$
  269. (5?.(
  270. #!##!
  271. %    
  272. $)))$'
  273.      +%
  274.  %%,%
  275.  +,, 
  276. #""!"
  277. %%%% !
  278.  %%%%
  279. %%%%%
  280. ++ +% 
  281. ((.$(
  282. $$.).$
  283. '($$$
  284. %% %+8
  285. %%  %
  286. +%%%+4%% 
  287. $.$))$($$.)$)).($)).$$)(($)$(
  288. ).$$(
  289. ).$$$((
  290. %  % 
  291.  %    
  292. %! % 
  293.  %%  %%% 
  294.  ,,,%
  295.  4%4 4
  296.        
  297. % %%%
  298. % +   
  299.   + %
  300.  %+%  %%C +%, 
  301. 4%%+%
  302. %%+%%
  303. ++,%,
  304. ,%%%%
  305.     %%4,
  306.  %%%,,
  307. ,%,+ 
  308. %%%+% 
  309.   +%%%,,%,+%%
  310.  %%%%%
  311.  %,,4,%,4%8,8,%,+%  + %%+4%%
  312.     %,,%%%%%,,%, %%%+%, % 
  313.  %+  
  314. 488,%% ,,,% 4%%, %8%
  315. %,,>C,8+,,, %+%,8,, 
  316. % ,>,C>,%+,%
  317. %, ,%%  %%%%
  318. %,,%,CC>%%,% +8%%%++
  319. +%,%4,88%, 
  320.  +% %,%
  321. %%,,%%8,,%
  322. %%>,+488,,
  323. % +% 
  324. ,>,,% +,4,%%%,4
  325. ,,,,,,44%%, ,, %
  326. ,%4,%4 ++
  327. +%%48%%,%%%
  328. %%%%%%,,,8%
  329. %%4%%C%,4,, 
  330. %%%,% 
  331.  %,%4
  332. 84%, 4%%
  333. %8 %,  
  334.  ,8%,
  335. %%%  
  336. 4 %+%
  337.  % %%%%
  338. (').'
  339. ()$$(
  340. B/7/2
  341. .712/
  342. $.0502
  343. ./1//
  344. $.0502
  345. $0203
  346. $$*=0/
  347. $$$5=/7
  348. $&$$10//
  349. $)&$&07/
  350. $.&&&)12/0
  351. $&&&$)0</
  352. &)&.&&&2/0
  353. &)&)&$&1102J
  354. &--&&$$)1/03
  355. &&&).$&11/2
  356. B&--&&$$)1/03    
  357. &&-&&$$)$/00
  358. &*&*&&&&&$36/=
  359. &&&*$&)&$130/
  360. B**&&&&*&&.1600
  361. **-&-.*&&$&6000
  362. -*&&&&&-&&&&167/
  363. **-&-.&&&$&1000
  364. -*&&&&&-&&&&167/
  365. &&&&&.--&&&1777
  366. &&&&&&&-**&&&607
  367. &&&&&&&&-*&&&2607(
  368. -&-&&&&&&-*&-&106/
  369. -&&&-&-&&-*&&&-066
  370. &---&&*&)&)&--&)1600
  371. E&-&-&&*&)*)*&-))700$
  372. &&&&&**&&*$&&&&&&066
  373. &&&&&-****-&*&&&&176/
  374. *.&$$$*-&-*$.&&&&&2663
  375. '.*$$((
  376. &&&&&-***&-$*&&&&176/
  377. *.&$$$*-&-*$.&&&&&2663
  378. *)&&$$&-*-*&.&&&&&$667
  379. 5&$&$$$&&&**)&&&&.$<0000
  380. .$)((
  381. 5$$&)$.&-.*))&&&).&1030
  382. *&$&)-&&-)---&&..$$*2366
  383. *&@&&&&&-&.-&&&..$
  384. &&3/67
  385. &-&)&$*-)&)&)&&)$$$$*526A6
  386. $&&-&&&.-&-&..$$&&2/67
  387. &-&)&$*-)&)&)&&)$$$$*526A6
  388. -&$&&&-&&.&)&&&$$$$**2/77F
  389. *&&&&$$$.&$)$$$&)$
  390. *<I0AF
  391. 5&&&&$$$$.$.)$$$&)
  392. &*<10AF*
  393. B<*-&.$$$:$
  394. -*<36A
  395. **-&..$$@$
  396. $&<2666
  397. .<-&&.&&$$
  398. &<2367
  399. *<-&-&&$$
  400. :$$$:$-<=36(
  401. --**.-&&&$&$
  402. &2/07
  403. &-&*-&&&&&$$@
  404. $-/=70
  405. $-&&&&&&&&.&$$
  406. )22/3
  407. &-&*-&-&&&$&
  408. $-2=00
  409. $-&&&&&&&&.&$$
  410. )22/3
  411. --&-&&&&&$&.$
  412. $1223
  413. &-&&--&&&&&$:$$$
  414. *-*&-&&-&&&$
  415. $//2/
  416. ---*-&)---$$$$$
  417. $3//$
  418. .-*--&)&--&$$
  419. $$$10//
  420. &***&&.*&&$$)$$$100/
  421. .-*-*&&&--&$$:$$
  422. &***&&.*&&$$)$$$100/
  423. ***&-..-&$$$$$.133/
  424. .*--&&-).&
  425. $$$133/
  426. M*---&&-)$&$$$$10//
  427. *&*--&&.$:$$
  428.     M***---&.&
  429. $$J1//2
  430. .&&<*&$$$$$$133/
  431.     &&&<-&$$$$$$/33
  432. &&-*&$$
  433. $1//3N
  434. $&)*-)$$
  435. &//33!
  436. $$&)&.$$
  437. $0/=/
  438. $&)--)$$
  439. :&1//3
  440. $$&)&.$$
  441. $0/=/
  442. $$)&&$.@
  443. &&&&&$.&100/
  444. E-&&-&$.$300/    
  445. &&*.$)&000'    
  446. &&&-$$&2303
  447. &&&)$&2000
  448. &&&-.$)2303$    
  449. &&&)$&2000
  450. &&&$.2030
  451. .$&)2/03
  452. $$&&2/03
  453. :.&//0
  454. &1//0
  455. $-/2/
  456. $$///
  457. ;55K*
  458. $E2//
  459. )9*?5
  460. ')$($
  461. ($($$'
  462. (*.$$
  463. ($$$($
  464. Using notify
  465. From reader mode, press and hold the button down. While the button is still depressed, select a menu item.
  466. ed myMenuChoice is set to the value that the popupMenu() function returns. , the author will have one option called Control. 
  467. example
  468. Square,
  469. TB40WIN.DLL
  470. MenuMark
  471. +!popMenu
  472. !MpopMenu
  473. Red,Blue,}
  474. {Color,
  475. Round,},
  476. menuList
  477. {Shape,
  478. buttonDown
  479. linkDLL "TB40WIN.
  480. INT popMenu(WORD,STRING,
  481. menuList = "{Shape," & "Square," & "Round,}," & \
  482. "{Color," & "Red,Blue,}"
  483. lwindowHandle 
  484. pageScroll 
  485. "MenuMark", 
  486. -- create a 
  487. named 'markMenu' 
  488. )the location you need 
  489. display 
  490. Display a menu below
  491. Using the popMenu() functionnn OpenScripttcriptt
  492. menuMark
  493. *ClassTbl*
  494. *ClassEntry*
  495. *PTABLE*
  496. *WINDOWSEG*
  497. *ICONRESTAB*
  498. *ICONRESSEG*
  499. *ICONRES*
  500. Background
  501. *OBJTABLE*
  502. *IDTABLE*
  503. *NAMETAB*
  504. Rectangle
  505. Ellipse
  506. RoundedRectangle
  507. Polygon
  508. IrregularPolygon
  509. AngledLine
  510. Curve
  511. PaintObject
  512. Picture
  513. Group
  514. Stage
  515. Button
  516. Viewer
  517. ComboBox
  518. Field
  519. RecordField
  520. Hotword
  521. *RHOTWORD*
  522. *TbxBase*
  523.