home *** CD-ROM | disk | FTP | other *** search
/ Chip 5 / Chip_05_2000.iso / tb70anm.sbk (.txt) < prev    next >
Encoding:
Asymetrix ToolBook File  |  1999-09-03  |  70.6 KB  |  902 lines

  1. !This program cannot be run in DOS mode.
  2. .rdata
  3. @.rsrc
  4. @.reloc
  5. Asymetrix ToolBook Application
  6. MINSTB32.dll
  7. F    4    4    K
  8. *ClassTbl*
  9. *ClassEntry*
  10. *PTABLE*
  11. *WINDOWSEG*
  12. Viewer
  13. *ICONRESTAB*
  14. *ICONRESSEG*
  15. *ICONRES*
  16. Background
  17. *OBJTABLE*
  18. *IDTABLE*
  19. *NAMETAB*
  20. Rectangle
  21. Ellipse
  22. RoundedRectangle
  23. Polygon
  24. IrregularPolygon
  25. AngledLine
  26. Curve
  27. Field
  28. RecordField
  29. ComboBox
  30. Button
  31. PaintObject
  32. Picture
  33. Hotword
  34. *RHOTWORD*
  35. Group
  36. Stage
  37. *TbxBase*
  38.     &    eld
  39.     4    bxBase*
  40. bxBase*
  41.                 7    
  42. 7            7
  43. a                
  44. 7            7
  45. 7            777777    
  46.     7                
  47. 7            7
  48. a        7    
  49.                 7
  50.     7            
  51. a777    a
  52. aaaaa
  53. r0ULa2<
  54. 1,    "V
  55. 1,    "V
  56. systemBooks
  57. tb70r.sbk
  58. setUpDlls
  59. runtimeName
  60. tb70anm.sbk
  61. linkSysbook
  62. Author
  63. s_anim_idleAnimations
  64. Canim_StartPosition
  65. anim_edit
  66. anim_animationSettings
  67. Canim_StartPosition
  68. Canim_startPosition
  69. anim_animationSettings
  70. moved
  71. timeGetTime
  72. a_timeGetTime
  73. mmSystem.dll
  74. setUpDlls
  75. ,,H.,
  76. ,,H.,
  77. 1+\!8
  78. ,,H.,
  79. ,,H.,
  80. ]ASYM_AnimationState
  81. }playStep
  82. ASYM_AnimationNotifyObject
  83. ASYM_AnimationPosition
  84. s_anim_animationCache
  85. noRestart
  86. false
  87. 5ASYM_AnimationStep
  88. ZstopAnimation
  89. ASYM_ItemInList
  90. ASYM_AnimationNotifyViewer
  91. s_anim_idleAnimations
  92. ASYM_AnimationNumber
  93. objectAnimation
  94. Reset by play command
  95. paused
  96. YdoneAnimatingNotify
  97. setUpDlls
  98. theTarget
  99. 9a_timeGetTime
  100. _stopAnimTimer
  101. startAnimTimer
  102. }gyieldApp
  103. playing
  104. ASYM_AnimationPosition
  105. aborted by the user
  106. ASYM_AnimationNumber
  107. ]ASYM_AnimationState
  108. animTimerID
  109. 5ASYM_AnimationStep
  110. playAnimation
  111. obType
  112. viewer,book
  113. background
  114. bgAnimObs
  115. ASYM_ItemInList
  116. ZstopAnimation
  117. pageAnimObs
  118. restore
  119. animObs
  120. anim_animationSettings
  121. ASYM_Reset
  122. ASYM_Reset
  123. ]ASYM_AnimationState
  124. ASYM_AnimationNotifyObject
  125. s_anim_animationCache
  126. s_anim_idleAnimations
  127. ASYM_CleanupAnimations
  128. paused
  129. ULanimationCacheEntry
  130. 9a_timeGetTime
  131. ASYM_AnimationNotifyViewer
  132. ASYM_AnimationPosition
  133. animOffset
  134. 5ASYM_AnimationStep
  135. pauseAnimation
  136. animNum
  137. ]ASYM_AnimationState
  138. ASYM_AnimationNotifyObject
  139. s_anim_animationCache
  140. 5ASYM_AnimationStep
  141. ASYM_ItemInList
  142. s_anim_idleAnimations
  143. ASYM_AnimationNumber
  144. ASYM_CleanupAnimations
  145. ASYM_AnimationNotifyObject
  146. ASYM_AnimationNumber
  147. ULanimationCacheEntry
  148. YdoneAnimatingNotify
  149. doRestore
  150. notifyViewer
  151. notifyObj
  152. restoreAnimation
  153. animState
  154. ASYM_AnimationNotifyViewer
  155. ASYM_AnimationPosition
  156. ASYM_AnimationNotifyViewer
  157. restore
  158. animOffset
  159. ]ASYM_AnimationState
  160. stopAnimation
  161. s_anim_animationCache
  162. _stopAnimTimer
  163. s_anim_idleAnimations
  164. ASYM_CleanupAnimations
  165. 1+\!8
  166. Author
  167. anim_CurrentStep
  168. objectAnimation
  169. updateCel
  170. jumpToStep
  171. whichStep
  172. Author
  173. anim_CurrentStep
  174. objectAnimation
  175. updateCel
  176. jumpToPercent
  177. s_anim_animationCache
  178. successful
  179. ZstopAnimation
  180. 9a_timeGetTime
  181. updateCel
  182. playStep
  183. 1+\!!
  184. 1+\!8
  185. updateCel
  186. doneAnimatingNotify
  187. currentAnim
  188. jumpToStep
  189. currentObject
  190. restoreAnimation
  191. L$closeAllAnimations
  192. ASYM_CloseAllAnimations
  193. .-+    +L
  194. ,,H.,
  195. s_anim_animationCache
  196. _stopAnimTimer
  197. s_anim_idleAnimations
  198. ZstopAnimation
  199. restoreAnimation
  200. aborted by the user
  201. default
  202. closeAllAnimations
  203. anim_animationSettings
  204. objectAnimation
  205. anim_animationSettings
  206. anim_animationSettings
  207. objectAnimation
  208. 1,    "V
  209. s_anim_idleAnimations
  210. animationCacheEntry
  211. s_anim_animationCache
  212. ULanimationCacheEntry
  213. anim_Offset
  214. s_anim_animationCache
  215. ULanimationCacheEntry
  216. anim_Offset
  217. s_anim_animationCache
  218. ULanimationCacheEntry
  219. anim_CurrentStep
  220. s_anim_animationCache
  221. ULanimationCacheEntry
  222. anim_CurrentStep
  223. s_anim_animationCache
  224. objectAnimation
  225. ULanimationCacheEntry
  226. whichAnimation
  227. anim_NumRepetitions
  228. s_anim_animationCache
  229. objectAnimation
  230. ULanimationCacheEntry
  231. whichAnimation
  232. objectAnimation
  233. anim_NumRepetitions
  234. s_anim_animationCache
  235. objectAnimation
  236. ULanimationCacheEntry
  237. whichAnimation
  238. anim_CelAnimation
  239. s_anim_animationCache
  240. objectAnimation
  241. ULanimationCacheEntry
  242. whichAnimation
  243. objectAnimation
  244. anim_CelAnimation
  245. s_anim_animationCache
  246. objectAnimation
  247. ULanimationCacheEntry
  248. anim_ShowAllSteps
  249. s_anim_animationCache
  250. objectAnimation
  251. ULanimationCacheEntry
  252. objectAnimation
  253. anim_ShowAllSteps
  254. s_anim_animationCache
  255. objectAnimation
  256. ULanimationCacheEntry
  257. anim_Duration
  258. s_anim_animationCache
  259. objectAnimation
  260. ULanimationCacheEntry
  261. objectAnimation
  262. anim_Duration
  263. s_anim_animationCache
  264. objectAnimation
  265. ULanimationCacheEntry
  266. anim_NumSteps
  267. s_anim_animationCache
  268. objectAnimation
  269. ULanimationCacheEntry
  270. objectAnimation
  271. anim_NumSteps
  272. s_anim_animationCache
  273. objectAnimation
  274. ULanimationCacheEntry
  275. anim_StepsPerCell
  276. s_anim_animationCache
  277. objectAnimation
  278. ULanimationCacheEntry
  279. objectAnimation
  280. anim_StepsPerCell
  281. objectAnimation
  282. anim_StartPosition
  283. objectAnimation
  284. objectAnimation
  285. anim_StartPosition
  286. objectAnimation
  287. anim_StartSize
  288. objectAnimation
  289. anim_EndSize
  290. s_anim_animationCache
  291. ULanimationCacheEntry
  292. anim_StartTime
  293. s_anim_animationCache
  294. ULanimationCacheEntry
  295. 9a_timeGetTime
  296. anim_elapsedTime
  297. 9a_timeGetTime
  298. anim_currentTime
  299. ,,H.,
  300. ,,H.,
  301. s_anim_animationCache
  302. ZstopAnimation
  303. s_anim_idleAnimations
  304. whatAnim
  305. }playStep
  306. _stopAnimTimer
  307. aborted by the user
  308. updateAnimations
  309. updateAnimations
  310. animTimerID
  311. animTimer
  312. ASYM_GetString
  313. msgTxt
  314. zIanim_setTimer
  315. ASYM_MessageBox
  316. Could not setup animation, no animations will play.
  317. msgCaption
  318. animTimer
  319. animTimer
  320. WARNING
  321. SetTimer
  322. anim_setTimer
  323. KillTimer
  324. anim_killTimer
  325. Path Animation
  326. msgAnimCantSetUpAnimations
  327. closeAllAnimations
  328. animTimerID
  329. startAnimTimer
  330. Rlanim_killTimer
  331. animTimer
  332. animTimerID
  333. stopAnimTimer
  334. L$closeAllAnimations
  335. author
  336. --    SYSTEM message handlers related 
  337. animations
  338. linkSysbook
  339.         -- This sysBook relies on the ToolBook runtime 
  340. $(TBx0R.SBK)
  341.         runtimeName = "tb70r.sbk"
  342. "," & 
  343.             -- ensure we're 
  344. place (
  345.             systemBooks = 
  346. ~("tb70anm.
  347. anmNum = 
  348. runtimeNum = 
  349. "," & 
  350. ssm = sysSuspendMessages
  351. setUpDlls
  352. -- traps 
  353. moved 
  354. repositions 
  355.  path 
  356. -- user has 
  357. xselected 
  358. coordinate 
  359. s_anim_idleAnimations
  360.     LOCAL newPos, settingsTable[][]
  361. "anim_animationSettings" 
  362.         ss = 
  363. = FALSE
  364. e<> "anim_edit"
  365. dimensions(
  366. ) <> 
  367. anim_startPosition(1) 
  368. <> NULL
  369. dx = 
  370. dy = 
  371. i][13] 
  372. "Author" 
  373. anim_StartPosition(i) 
  374. + dx,
  375. 8(i) 
  376. --    These 
  377. are helper functions 
  378. startup            --
  379. LOGICAL sysSuspendState
  380. use instead 
  381. getTickCount()
  382. 's more accurate 
  383. calculating durations
  384.     linkDLL "mmSystem.dll"
  385.         DWORD a_timeGetTime=
  386. scripts 
  387. playing 
  388. playAnimation 
  389. , notifyObject, waitTillDone, options
  390. ns,s_anim_animationCache[][], animTimerID
  391.     noRestart = ASYM_ItemInList ("
  392. e = ASYM_AnimationNumber 
  393.             -- We're 
  394. a different 
  395.  we have cached,
  396.             -- so 
  397.  information.
  398. [ASYM_AnimationState 
  399. [ASYM_AnimationNotifyObject 
  400. !fyViewer 
  401. [ASYM_AnimationPosition 
  402. [ASYM_AnimationStep 
  403.             -- 
  404. we're 
  405. , we always restart
  406. only 
  407. which actually 
  408.  = objectAnimation(
  409. ) = 0
  410.     theTarget = 
  411. ns) = 0 
  412. startAnimTimer
  413. 's already being animated on 
  414. Fstop 
  415.         -- 
  416. requested 
  417. Fwe bail
  418.             mmYield
  419. he[i][3] <> 
  420. doneAnimatingNotify "Reset 
  421. he[i][12]
  422.         animCount = 
  423. ns = 
  424.             -- i 
  425. igger than 
  426.             -- because we 
  427. going 
  428. ns = 
  429.     isPaused = 
  430. >= "paused"
  431. he[i][1] = 
  432. () - 
  433. he[i][2] = 
  434. he[i][1] = 
  435. ()            --StartTime
  436. he[i][2] = 0
  437. --CurrentStep
  438. he[i][3] = 
  439. he[i][j] = 
  440. he[i][12] = 
  441. starting point 
  442.         lockScreen 
  443. e= TRUE
  444. he[i][6]
  445. he[i][4]
  446.         -- finish 
  447. 4continuing
  448. playStep j 
  449. he[j][12]
  450. yieldApp()
  451. (sysMediaBreakKey) = down 
  452. stopAnimation "aborted 
  453. he[i][12]
  454. ns = 
  455.         -- potential infinite loop (
  456. reps=forever) unless 
  457. presses Escape key 
  458.         -- remember what 
  459. currently 
  460. state
  461. ns) = 0
  462. stopAnimTimer
  463. ASYM_Reset
  464.     -- If targeted 
  465. , stops the
  466. . If 
  467. , does a 
  468.     obType = 
  469.         pageAnimObs = getObjectList (
  470.         bgAnimObs = 
  471.         animObs = 
  472. getPropertyDimensions (
  473. ) <> 
  474. -- much 
  475. same 
  476. , but doesn't 
  477. pauseAnimation status
  478. he[][]
  479.     animOffset = animationCacheEntry (
  480. &<> 0
  481. @][3]
  482. Z][12]
  483. () - 
  484. ][1] 
  485. ns = 
  486. ][1] = 0
  487. ASYM_CleanupAnimations
  488.  "During Idle" 
  489. Hremoving 
  490. he[][]
  491.     doRestore = 
  492.     -- An 
  493. {might 
  494.  list 
  495.  - we still
  496.     -- want 
  497.         animNum = 
  498. restoreAnimation 
  499. ns = 
  500. ][1] = 0
  501.     -- We 
  502.  was 
  503.     -- animating *OR* 
  504.     animState = 
  505. <> 0 
  506.             notifyViewer = 
  507. ][12]
  508. ltargetWindow
  509. -- clears 
  510. there 
  511. ns <> 
  512. entries 
  513. -- lets users specify a 
  514. jumpToStep whichStep, whichAnimation
  515. $ = 1
  516. ) > 0
  517.  < 0 
  518. )*4-3 
  519. fake out 
  520. /sized 
  521. tempSuspendMessages = 
  522. updateCel 
  523. [11],
  524.             anim_CurrentStep(
  525. a percent 
  526. full 
  527. length 
  528. jumpToPercent percentComplete, 
  529. ) > 0
  530.  < 0 
  531. +1)*4-3 
  532. +1)*4 
  533.             -- 
  534.             -- 
  535. [11],
  536. -- plays 
  537. -- called 
  538. "Without Yielding" 
  539. currentAnim
  540. he[][]
  541. theTickCount,
  542. stepNumber,celNumber
  543. \][5]; -- showing 
  544. frames
  545. ][2] + 1
  546.         -- 
  547. should be on
  548.         -- 
  549. been covered 
  550. Hnow?
  551. %complete = [elapsed 
  552. Isince 
  553. mSec]
  554. ][1])/
  555. ][8]/1000
  556. ][9])
  557.  screen so 
  558.  happen simultaneously
  559.     ls = 
  560. ][10]) = 8
  561.         pt1 = 
  562. ][10]
  563.         pt2 = 
  564. ][10]
  565.         pt3 = 
  566. ][10]
  567.         pt4 = 
  568. ][10]
  569.         pt5 = 
  570. ][10]
  571.         pt6 = 
  572. ][10]
  573.         pt7 = 
  574. ][10]
  575.         pt8 = 
  576. ][10]
  577.         flag = 
  578. ][8] * 1000) + 
  579. ][1]) < 
  580.  >= (
  581. ][9] * 
  582. ][7]) 
  583. ][7] <> 0 
  584.             -- 
  585. past 
  586.             -- 
  587. ][9] * 4 + 1
  588. ][10]
  589.             -- 
  590. fbuilt-
  591. ][11],
  592. ][9],
  593.             -- 
  594. queue 
  595. 's on its 
  596. successful" 
  597.             -- 
  598. specified
  599. ][9]) -- 
  600. +1)*4-3 
  601. +1)*4 
  602. ][10]
  603.             -- 
  604. ][11],
  605.             -- 
  606.      currentStep
  607. ][2] = 
  608. e= ls
  609. -- hides 
  610. shows 
  611. , StepsPerCel, 
  612. previousstepNumber
  613. CelNumberToShow,CelNumberToHide,CelCount
  614. < so that 
  615.     -- (
  616. 0 corresponds 
  617.     -- calculate 
  618. fregards 
  619.  -- so 
  620. starts 
  621. ) -- total Cels 
  622.  = 0 
  623.         -- i.e. n 
  624. kn = 0 
  625.         -- 
  626. shown
  627.  -- so 
  628.  = 0 
  629.             -- i.e. n 
  630. kn = 0 
  631.         -- assume 
  632.  = 1 
  633. ,whatObject
  634. $so no 
  635. %error 
  636. generated 
  637. sent 
  638. }without 
  639. -- sends 
  640. -- can be 
  641. objectList, animationList
  642. g) > 0
  643. currentObject
  644. ASYM_CloseAllAnimations
  645. closeAllAnimations
  646.         --just 
  647. let caller know we were 
  648. #ns, 
  649.  he[][]
  650. isOpen 
  651.  he[i][12]
  652. !he[i][12]
  653. <!he[i][12]
  654. default
  655. --    these 
  656. "utilities getting 
  657. $ a single 
  658.  rowNum
  659.     ss = 
  660. $ngs 
  661. S = 1
  662. l][1] <> 
  663. M%[i] = 
  664. f%[14] = 
  665.     ss = 
  666. %[14]][i] = 
  667. =&1][i] = 
  668. -&[i]
  669. working 
  670. outside 
  671.     )editor interface
  672. <> 0 
  673. 2'ns)
  674. <> 0 
  675. -- Run 
  676. $ Properties
  677. anim_Offset
  678. h$he[][]
  679. value
  680. $he[][]
  681. <> 0 
  682. isType(POINT, 
  683. ][6] = 
  684. r= -1
  685. *%he[][]
  686. W%he[
  687. x%he[][]
  688. <> 0 
  689. /&", 
  690. ][2] = 
  691. -- Persistent 
  692. anim_NumRepetitions
  693. %he[][]
  694. *) = 
  695. B)) > 0
  696. P)[7]
  697. g&he[
  698. &he[][]
  699. <> 0 
  700. K'", 
  701. ][7] = 
  702. )) > 0
  703. *[7] = 
  704. anim_CelAnimation
  705. ?'he[][]
  706. r* = 
  707. *) > 0
  708. 'he[][]
  709. <> 0 
  710. ][4] = 
  711. -+ = 
  712. D+) > 0
  713. O+[4] = 
  714. anim_ShowAllSteps 
  715. (he[][]
  716. +) > 0
  717. )he[][]
  718. <> 0 
  719. e*", 
  720. Z)he[
  721. ][5] = 
  722. {, = 
  723. ,) > 0
  724. ,[5] = 
  725. anim_Duration 
  726. )he[][]
  727. -) > 0
  728. --[8]
  729. D*he[
  730. h*he[][]
  731. <> 0 
  732. *+", 
  733. ][8] = 
  734. -) > 0
  735. -[8] = 
  736. anim_NumSteps 
  737. +he[][]
  738. Q. = 
  739. i.) > 0
  740. w.[9]
  741. +he[][]
  742. <> 0 
  743. t,", 
  744. ][9] = 
  745. &/) > 0
  746. 1/[9] = 
  747. anim_StepsPerCell 
  748. l,he[][]
  749. /) > 0
  750. /[11]
  751. ][11]
  752. -he[][]
  753. <> 0 
  754. >-he[
  755. ][11] = 
  756. `0 = 
  757. w0) > 0
  758. 0[11] = 
  759. 0) > 0
  760. 01) > 0
  761. ;1[6] = 
  762. -- Read Only (persistent)
  763. anim_StartSize 
  764. 1) > 0
  765. 1[15]
  766. anim_EndSize 
  767. 2) > 0
  768. $2[16]
  769. anim_StartTime
  770. _/he[][]
  771. anim_elapsedTime
  772. /he[][]
  773. r0() - 
  774. anim_currentTime
  775. 0 stuff
  776. updateAnimations
  777. 3ns, 
  778. R0he[][]
  779. whatAnim = 
  780. 0he[i][12]
  781. *4ns) > 0
  782. B4ns)
  783. &1he[i][12]
  784. A1he[i][12]
  785. 4ns) = 0
  786. 1 whatHandle, whatMsg, wparam
  787. "USER"
  788.         INT     anim_setTimer =        SetTimer        (
  789. 0killTimer =    KillTimer        (
  790. U2 = 4843
  791. `2 = 
  792. c(sysClientHandle,
  793. y2,50,0)         
  794. 2 = 0
  795.         msgTxt = ASYM_GetString("msgAnimCantSetUpAnimations", \
  796. "Could 
  797. xsetup 
  798. 8, no 
  799. 8 will 
  800. h3.")
  801.         msgCaption = 
  802. ePath 
  803. ASYM_MessageBox(
  804. ., "WARNING", "OK")
  805.     translateWindowMessage 
  806.         0x001F     
  807.         0x0113     
  808. 3 <> 
  809. anim_killTimer(
  810.     untranslateWindowMessage 0
  811. default
  812. YMI_SySysGridSpacing
  813. YMI_SysGrid
  814. Arial
  815. Arial
  816. FALSE
  817. Slade Mitchell
  818. YMI_SysGridSnap
  819. MS Sans Serif
  820. Mike Florence
  821. YM_BorderStyle
  822. Mike Florence
  823. System
  824. Arial
  825. YMA_CustomColors
  826. Tim Barham
  827. Arial
  828. 11/18/98 7:20:13 PM
  829. 0,75.3125,0
  830. 120,50,100
  831. 132,67.25,50.875
  832. 125,50,45.875
  833. 129,67.0625,79.8125
  834. 240,75.125,100
  835. 180,75.125,100
  836. 240,31.375,100
  837. 0,75.3125,0
  838. 120,50,100
  839. 132,67.25,50.875
  840. 125,50,45.875
  841. 129,67.0625,79.8125
  842. 240,75.125,100
  843. 180,75.125,100
  844. 240,31.375,100
  845. ASYM_MultiLanguageSupport
  846. Mike Florence
  847. Mike Florence
  848. info_LastSavedBy
  849. 11/18/98 7:20:51 PM
  850. info_LastSaved
  851. FALSE
  852. ASYMI_SysGrid
  853. ASYMI_SysGridSnap
  854. ASYMI_SySysGridSpacing
  855. ASYM_BorderStyle
  856. ASYM_CaptionBar
  857. _ASYM_EA_Version
  858. 3:51 AM
  859. 9/1/99 1:41:54 PM
  860. ASYMA_CustomColors
  861. 0,89,0
  862. 0,75.3125,0
  863. 120,50,100
  864. 132,67.25,50.875
  865. 125,50,45.875
  866. 129,67.0625,79.8125
  867. 240,75.125,100
  868. 180,75.125,100
  869. 9/1/99 11:55:42 AM
  870. E:\Dev\Pinky Program\Assist\Catalog\assist.BKI
  871. idxFn
  872. Path Animation System Book
  873. ASYM_BeenHere
  874. minorVersion
  875. ASYM_CBTVersion
  876. BookTitleText
  877. Instructor
  878. productName
  879. ToolBook II %1 %2
  880. titleText
  881. Assistant
  882. ASYM_GetString
  883. s_ASYM_ProductName
  884. enterBook
  885. notifyBefore 
  886. 4s_ASYM_ProductName
  887.     titleText = ASYM_GetString("BookTitleText", \
  888.             "ToolBook II %1 %2")
  889. Z = "Assistant" 
  890.         productName = 
  891. kInstructor")
  892. expandString(
  893. @, ASYM_CBTVersion (
  894. P, "minorVersion"))
  895. enterBook
  896. 9411011714178865372342
  897. ASYM_TpID
  898. Title
  899. ToolBook II Instructor 7.1
  900. Copyright 
  901.  Asymetrix Learning Systems Inc. 1990-1997tems Inc. 1990-1997
  902.