home *** CD-ROM | disk | FTP | other *** search
/ PC go! 1996 December / PC_GO.ISO / tb40anm.sbk (.txt) < prev    next >
Encoding:
Asymetrix ToolBook File  |  1996-02-26  |  63.5 KB  |  682 lines

  1. 9411011714178865372342
  2. ASYM_TpID
  3. enterpage
  4. buttonclick
  5. notifyBefore 
  6. buttonclick
  7. Script
  8. ToolBook 4.0 - Systembuch f
  9. r Runtime-Animationn SysBook
  10. Copyright 
  11.  1995 Asymetrix Corporation
  12. enterpage
  13. MS Sans Serif
  14. info_LastSavedBy
  15. /95 11:30:33 AM
  16. info_LastSaved
  17. 10/3/95 1:26:06 PM
  18. ffrey Ayars
  19. MS Sans Serif
  20. Arial
  21. Craig S McDonald
  22. 10/3/95 1:26:18 PM
  23. --    SYSTEM message handlers related 
  24. animations
  25. linkSysbook
  26. setUpDlls
  27. -- traps 
  28. moved 
  29. repositions 
  30. x path 
  31. -- user has 
  32. xselected 
  33. coordinate 
  34. s_anim_idleAnimations
  35.     LOCAL newPos, settingsTable[][]
  36. "anim_animationSettings" 
  37.         ss = 
  38. = FALSE
  39. e<> "anim_edit"
  40. dimensions(
  41. ) <> 
  42. anim_startPosition(1) 
  43. dx = 
  44. dy = 
  45. i][13] 
  46. "Author" 
  47. anim_StartPosition(i) 
  48. + dx,
  49. 8(i) 
  50. --    These 
  51. are helper functions 
  52. startup            --
  53. LOGICAL sysSuspendState
  54. use instead 
  55. getTickCount()
  56.     -- IT's more accurate 
  57. calculating durations
  58.     linkDLL "mmSystem.dll"
  59.         DWORD a_timeGetTime=
  60. scripts 
  61. playing 
  62. playAnimation 
  63. , notifyObject, waitTillDone
  64. ns,s_anim_animationCache[][]
  65.  = NULL
  66. ) = 1
  67. only 
  68. which actually have 
  69.  = objectAnimation(
  70. ) = 0
  71.     theTarget = 
  72. ns) = 0
  73. startAnimTimer
  74. IT's already being animated on 
  75. Fstop 
  76. restart
  77. IT <> 
  78. IT = 
  79. he[i][3] <> 
  80. doneAnimatingNotify "Reset 
  81. he[i][12]
  82.         animCount = 
  83. ns = 
  84.             -- i 
  85. igger than 
  86.             -- because we 
  87. going 
  88. ns = 
  89. he[i][1] = 
  90. ()            --StartTime
  91. he[i][2] = 0
  92. --CurrentStep
  93. he[i][3] = 
  94. he[i][j] = 
  95. he[i][12] = 
  96. starting point 
  97.     lockScreen 
  98. e= TRUE
  99. he[i][6]
  100. he[i][4]
  101.         -- finish 
  102. 4continuing
  103. IT <> 
  104. playStep j 
  105. he[j][12]
  106. yieldApp()
  107. (sysMediaBreakKey) = down 
  108. IT <> 
  109. stopAnimation "aborted 
  110. he[i][12]
  111. ns = 
  112.         -- potential infinite loop (
  113. reps=forever) unless 
  114. presses Escape key 
  115. ns) = 0
  116. stopAnimTimer
  117. -- stops 
  118.  "During Idle" 
  119. Hremoving IT 
  120. status
  121. he[][]
  122. IT > 1
  123. IT <> 0 
  124. =    ns)
  125. IT <> 0 
  126.             IT = 0
  127. IT <> 0
  128.     ns = 
  129. he[IT][1] = 0
  130. he[IT][3]    --
  131. he[IT][12]
  132. there 
  133. animating 
  134. ns <> 
  135. entries 
  136. i > IT 
  137. IT = 0
  138. -- lets users specify a 
  139. jumpToStep whichStep, whichAnimation
  140. $ = 1
  141. ) > 0
  142.  < 0 
  143. )*4-3 
  144. fake out 
  145. /sized 
  146. tempSuspendMessages = sysSuspendMessages
  147. >= IT
  148. updateCel 
  149. [11],
  150.             anim_CurrentStep(
  151. a percent 
  152. full 
  153. length 
  154. jumpToPercent percentComplete, 
  155. ) > 0
  156.  < 0 
  157. +1)*4-3 
  158. +1)*4 
  159.             -- 
  160. >= IT
  161.             -- 
  162. [11],
  163. -- plays 
  164. -- called 
  165. "Without Yielding" 
  166.         currentAnim
  167. he[][]
  168. theTickCount,
  169. stepNumber,celNumber
  170. Q][5]; -- showing 
  171. frames
  172. z][2] + 1
  173.         -- 
  174.     IT should be on
  175.         -- 
  176. what 
  177. been covered 
  178. Hnow?
  179. %complete = [elapsed 
  180. Isince 
  181. mSec]
  182. ][1])/
  183. ][8]/1000
  184. ][9])
  185.  screen so 
  186.  happen simultaneously
  187.     ls = 
  188.  >= (
  189. ][9] * 
  190. ][7]) 
  191. ][7] <> 0
  192.             -- IT's 
  193. past 
  194.             -- 
  195. ][9] * 4 + 1
  196. IT + 3 
  197. ][10]
  198. >= IT
  199.             -- 
  200. fbuilt-
  201. ][11],
  202. ][9],
  203.             -- 
  204. queue 
  205. IT's on its 
  206. successful" 
  207.             -- 
  208. specified
  209. ][9]) -- 
  210. (IT+1)*4-3 
  211. (IT+1)*4 
  212. ][10]
  213. >= IT
  214.             -- 
  215. ][11],
  216.             -- 
  217.  currentStep
  218. ][2] = 
  219. e= ls
  220. -- hides 
  221. shows 
  222. , StepsPerCel, 
  223. previousstepNumber
  224. CelNumberToShow,CelNumberToHide,CelCount
  225. < so that 
  226.     -- (
  227. $    0 corresponds 
  228.     -- calculate 
  229. fregards 
  230.  -- so 
  231.  always starts 
  232. ) -- total Cels 
  233.  = 0 
  234.         -- i.e. n 
  235. kn = 0 
  236. Mwe want 
  237.         -- 
  238. shown
  239.  -- so 
  240.  = 0 
  241.             -- i.e. n 
  242. kn = 0 
  243.         -- assume 
  244.  = 1 
  245. ,whatObject
  246. so no 
  247. error 
  248. generated 
  249. sent 
  250. }without 
  251. -- sends 
  252. -- can be 
  253. fa list 
  254. restoreAnimation objectList, animationList
  255. g) > 0
  256. currentObject
  257. closeAllAnimations
  258. he[][]
  259. isOpen 
  260. he[i][12]
  261. he[i][12]
  262. he[i][12]
  263. default
  264. --    these 
  265. utilities getting 
  266.  a single 
  267.  rowNum
  268.     ss = 
  269. S = 1
  270. l][1] <> 
  271. [i] = 
  272. [14] = 
  273.     ss = 
  274. [14]][i] = 
  275. 1][i] = 
  276. working 
  277. outside 
  278. editor interface
  279. animationCacheEntry 
  280. IT > 1
  281. IT <> 0 
  282. IT <> 0 
  283.             IT = 0
  284. -- Run 
  285.  Properties
  286. anim_Offset
  287. he[][]
  288. IT = 0
  289. he[IT][6]
  290. value
  291. he[][]
  292. IT <> 0 
  293. isType(POINT, 
  294. he[IT][6] = 
  295. r= -1
  296. he[][]
  297. IT = 0
  298. he[IT][2]
  299. he[][]
  300. IT <> 0 
  301. he[IT][2] = 
  302. -- Persistent 
  303. anim_NumRepetitions
  304. he[][]
  305. IT = 0
  306. ) > 0
  307. he[IT][7]
  308. he[][]
  309. IT <> 0 
  310. he[IT][7] = 
  311. 4  = 
  312. K ) > 0
  313. V [7] = 
  314. anim_CelAnimation
  315. he[][]
  316. IT = 0
  317.  ) > 0
  318. he[IT][4]
  319. he[][]
  320. IT <> 0 
  321. he[IT][4] = 
  322. }! = 
  323. !) > 0
  324. ![4] = 
  325. anim_ShowAllSteps 
  326. he[][]
  327. IT = 0
  328. &") > 0
  329. 4"[5]
  330. he[IT][5]
  331. he[][]
  332. IT <> 0 
  333. he[IT][5] = 
  334. ") > 0
  335. "[5] = 
  336. anim_Duration 
  337. C he[][]
  338. IT = 0
  339. Z# = 
  340. r#) > 0
  341.  he[IT][8]
  342.  he[][]
  343. IT <> 0 
  344. !he[IT][8] = 
  345. 0$) > 0
  346. ;$[8] = 
  347. anim_NumSteps 
  348. !he[][]
  349. IT = 0
  350. $) > 0
  351. "he[IT][9]
  352. $"he[][]
  353. IT <> 0 
  354. a"he[IT][9] = 
  355. e% = 
  356. |%) > 0
  357. %[9] = 
  358. anim_StepsPerCell 
  359. "he[][]
  360. IT = 0
  361. &) > 0
  362. &[11]
  363. Q#he[IT][11]
  364. v#he[][]
  365. IT <> 0 
  366. 0$", 
  367. #he[IT][11] = 
  368. &) > 0
  369. &[11] = 
  370. 0') > 0
  371. ='[6]
  372. q' = 
  373. ') > 0
  374. '[6] = 
  375. -- Read Only (persistent)
  376. anim_StartSize 
  377. () > 0
  378. ([15]
  379. anim_EndSize 
  380. X( = 
  381. o() > 0
  382. |([16]
  383. anim_StartTime
  384. %he[][]
  385. IT = 0
  386. &he[IT][1]
  387. anim_elapsedTime
  388. -&he[][]
  389. IT = 0
  390. &() - 
  391. c&he[IT][1]
  392. anim_currentTime
  393. % stuff
  394. updateAnimations
  395. )ns, 
  396. &he[][]
  397.  *ns)
  398. whatAnim = 
  399. ;'he[i][12]
  400. *ns) > 0
  401. 'he[i][12]
  402. 'he[i][12]
  403. +ns) = 0
  404. animTimer whatHandle, whatMsg, wparam
  405. Q,animTimerID, 
  406. "USER"
  407.         INT     anim_setTimer =        SetTimer        (
  408. 0killTimer =    KillTimer        (
  409. = 4843
  410. `(sysClientHandle,
  411. ,20,0)         
  412. _)konnte nicht eingerichtet werden; Animationen 
  413. 'abgespielt.")
  414.     translateWindowMessage 
  415.         0x001F     
  416.         0x0113     
  417. anim_killTimer(
  418.     untranslateWindowMessage 0
  419. setUpDlls
  420. linkSysbook
  421. Author
  422. s_anim_idleAnimations
  423. Canim_StartPosition
  424. anim_edit
  425. anim_animationSettings
  426. Canim_StartPosition
  427. Canim_startPosition
  428. anim_animationSettings
  429. moved
  430. mmSystem.dll
  431. timeGetTime
  432. a_timeGetTime
  433. setUpDlls
  434. ,&H.&
  435. ,&H.&
  436. 1+V!8
  437. ,&H.&
  438. ,&H.&
  439. s_anim_animationCache
  440. }gyieldApp
  441. ZstopAnimation
  442. s_anim_idleAnimations
  443. }playStep
  444. objectAnimation
  445. Reset by play command
  446. YdoneAnimatingNotify
  447. theTarget
  448. 9a_timeGetTime
  449. _stopAnimTimer
  450. startAnimTimer
  451. aborted by the user
  452. playAnimation
  453. 1,    "V
  454. s_anim_animationCache
  455. _stopAnimTimer
  456. s_anim_idleAnimations
  457. YdoneAnimatingNotify
  458. notifyObj
  459. stopAnimation
  460. 1+V!8
  461. Author
  462. anim_CurrentStep
  463. objectAnimation
  464. updateCel
  465. jumpToStep
  466. whichStep
  467. Author
  468. anim_CurrentStep
  469. objectAnimation
  470. updateCel
  471. jumpToPercent
  472. s_anim_animationCache
  473. successful
  474. ZstopAnimation
  475. 9a_timeGetTime
  476. updateCel
  477. playStep
  478. 1+V!!
  479. 1+V!8
  480. updateCel
  481. doneAnimatingNotify
  482. currentAnim
  483. jumpToStep
  484. currentObject
  485. restoreAnimation
  486. .'+    +F
  487. ,&H.&
  488. s_anim_animationCache
  489. _stopAnimTimer
  490. s_anim_idleAnimations
  491. ZstopAnimation
  492. restoreAnimation
  493. aborted by the user
  494. default
  495. closeAllAnimations
  496. anim_animationSettings
  497. objectAnimation
  498. anim_animationSettings
  499. anim_animationSettings
  500. objectAnimation
  501. 1,    "V
  502. s_anim_idleAnimations
  503. animationCacheEntry
  504. s_anim_animationCache
  505. ULanimationCacheEntry
  506. anim_Offset
  507. s_anim_animationCache
  508. ULanimationCacheEntry
  509. anim_Offset
  510. s_anim_animationCache
  511. ULanimationCacheEntry
  512. anim_CurrentStep
  513. s_anim_animationCache
  514. ULanimationCacheEntry
  515. anim_CurrentStep
  516. s_anim_animationCache
  517. objectAnimation
  518. ULanimationCacheEntry
  519. whichAnimation
  520. anim_NumRepetitions
  521. s_anim_animationCache
  522. objectAnimation
  523. ULanimationCacheEntry
  524. whichAnimation
  525. objectAnimation
  526. anim_NumRepetitions
  527. s_anim_animationCache
  528. objectAnimation
  529. ULanimationCacheEntry
  530. whichAnimation
  531. anim_CelAnimation
  532. s_anim_animationCache
  533. objectAnimation
  534. ULanimationCacheEntry
  535. whichAnimation
  536. objectAnimation
  537. anim_CelAnimation
  538. s_anim_animationCache
  539. objectAnimation
  540. ULanimationCacheEntry
  541. anim_ShowAllSteps
  542. s_anim_animationCache
  543. objectAnimation
  544. ULanimationCacheEntry
  545. objectAnimation
  546. anim_ShowAllSteps
  547. s_anim_animationCache
  548. objectAnimation
  549. ULanimationCacheEntry
  550. anim_Duration
  551. s_anim_animationCache
  552. objectAnimation
  553. ULanimationCacheEntry
  554. objectAnimation
  555. anim_Duration
  556. s_anim_animationCache
  557. objectAnimation
  558. ULanimationCacheEntry
  559. anim_NumSteps
  560. s_anim_animationCache
  561. objectAnimation
  562. ULanimationCacheEntry
  563. objectAnimation
  564. anim_NumSteps
  565. s_anim_animationCache
  566. objectAnimation
  567. ULanimationCacheEntry
  568. anim_StepsPerCell
  569. s_anim_animationCache
  570. objectAnimation
  571. ULanimationCacheEntry
  572. objectAnimation
  573. anim_StepsPerCell
  574. objectAnimation
  575. anim_StartPosition
  576. objectAnimation
  577. objectAnimation
  578. anim_StartPosition
  579. objectAnimation
  580. anim_StartSize
  581. objectAnimation
  582. anim_EndSize
  583. s_anim_animationCache
  584. ULanimationCacheEntry
  585. anim_StartTime
  586. s_anim_animationCache
  587. ULanimationCacheEntry
  588. 9a_timeGetTime
  589. anim_elapsedTime
  590. 9a_timeGetTime
  591. anim_currentTime
  592. ,&H.&
  593. ,&H.&
  594. s_anim_animationCache
  595. ZstopAnimation
  596. s_anim_idleAnimations
  597. whatAnim
  598. }playStep
  599. _stopAnimTimer
  600. aborted by the user
  601. updateAnimations
  602. updateAnimations
  603. animTimerID
  604. animTimer
  605. Animation konnte nicht eingerichtet werden; Animationen werden nicht abgespielt.
  606. zIanim_setTimer
  607. animTimer
  608. SetTimer
  609. anim_setTimer
  610. KillTimer
  611. anim_killTimer
  612. animTimer
  613. closeAllAnimations
  614. animTimerID
  615. startAnimTimer
  616. Rlanim_killTimer
  617. animTimer
  618. animTimerID
  619. stopAnimTimer
  620. L$closeAllAnimations
  621. author
  622. F    ,    ,    K
  623. *ClassTbl*
  624. *ClassEntry*
  625. *PTABLE*
  626. *WINDOWSEG*
  627. Viewer
  628. *ICONRESTAB*
  629. *ICONRESSEG*
  630. *ICONRES*
  631. Background
  632. *OBJTABLE*
  633. *IDTABLE*
  634. *NAMETAB*
  635. Rectangle
  636. Ellipse
  637. RoundedRectangle
  638. Polygon
  639. IrregularPolygon
  640. AngledLine
  641. Curve
  642. Field
  643. RecordField
  644. ComboBox
  645. Button
  646. PaintObject
  647. Picture
  648. Hotword
  649. *RHOTWORD*
  650. Group
  651. Stage
  652. *TbxBase*
  653. "    BJTABLE*
  654.     ,    eld
  655. bxBase*
  656. "    ,    bxBase*
  657. s_anim_idleAnimations
  658. animationCacheEntry
  659. s_anim_ani
  660. " & i
  661.  &" & i
  662.  = objLayer(
  663. B" && QUOTE & "
  664. " & i & 
  665. " && 
  666. {" & CRLF & \
  667. TAB & "
  668. }" & 
  669. >" & 
  670. editWidget" & 
  671. }" & 
  672.             tbk_wid_name 
  673.             tbk_wid_props 
  674.             tbk_wid_values 
  675. = i - 1
  676. Bi - 1 
  677. i - 1 
  678. i - 1 
  679. i - 1 
  680. 0) -- 0 = 
  681. notifyBefore
  682.