home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / hc / icecware.sit / ICEC-Ware / card_2419.txt < prev    next >
Encoding:
Text File  |  1988-10-30  |  12.6 KB  |  521 lines

  1. -- card: 2419 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 3958
  5. -- name: menus
  6. ----- HyperTalk script -----
  7. on openCard
  8.   set visible of button "last entry seen" to false
  9.   if card field status is "type" then
  10.     set hilite of button "Type of Use" of card 2 to true
  11.     type
  12.   end if
  13.   if card field status is "discipline" then
  14.     set hilite of button "Discipline" of card 2 to true
  15.     discipline
  16.   end if
  17.   if card field status is "system" then
  18.     set hilite of button "System" of card 2 to true
  19.     system
  20.   end if
  21.   if line 1 of card field status is "type choice" then
  22.     typeChoice line 2 of card field status
  23.   end if
  24.   if line 1 of card field status is "discipline choice" then
  25.     disciplineChoice line 2 of card field status
  26.   end if
  27.   if line 1 of card field status is "system choice" then
  28.     systemChoice line 2 of card field status
  29.   end if -- above xxxChoice things must be done before next stuff
  30.   if line 3 of card field status is empty then
  31.     set visible of button "last entry seen" to false
  32.   else -- lines in menuList will have been recomputed by xxxChoice
  33.     put 34+12*(number of lines of card field menuList) into it
  34.     set rect of button "last entry seen" to 0,it,80,it+50
  35.     set visible of button "last entry seen" to true
  36.   end if
  37. end openCard
  38.  
  39. on type
  40.   if visible of card field type is false then
  41.     hideAll
  42.     set visible of card field type to true
  43.   end if
  44.   play harpsichord c
  45. end type
  46.  
  47. on discipline
  48.   if visible of card field discipline is false then
  49.     hideAll
  50.     set visible of card field discipline to true
  51.   end if
  52.   play harpsichord e
  53. end discipline
  54.  
  55. on system
  56.   if visible of card field system is false then
  57.     hideAll
  58.     set visible of card field system to true
  59.   end if
  60.   play harpsichord g
  61. end system
  62.  
  63. on hideAll
  64.   set visible of card field menuList to false
  65.   set visible of card field type to false
  66.   set visible of card field discipline to false
  67.   set visible of card field system to false
  68. end hideAll
  69.  
  70. on typeChoice choice
  71.   if visible of card field menuList is false then
  72.     hideAll
  73.     put "    TYPE OF USE:  "&choice&return into card field menuList
  74.     set visible of card field menuList to true
  75.     repeat with t = 3 to (card field cardsIn)+2
  76.       if choice is in (card field "type" of card t) then
  77.         put card field "title" of card t after card field menuList
  78.         put return after card field menuList
  79.       end if
  80.     end repeat
  81.     play harpsichord c5
  82.   end if
  83. end typeChoice
  84.  
  85. on disciplineChoice choice
  86.   if visible of card field menuList is false then
  87.     hideAll
  88.     put "    DISCIPLINE:  "&choice&return into card field menuList
  89.     set visible of card field menuList to true
  90.     repeat with t = 3 to (card field cardsIn)+2
  91.       if choice is in (card field "discipline" of card t) then
  92.         put card field "title" of card t after card field menuList
  93.         put return after card field menuList
  94.       end if
  95.     end repeat
  96.     play harpsichord c5
  97.   end if
  98. end disciplineChoice
  99.  
  100. on systemChoice choice
  101.   if visible of card field menuList is false then
  102.     hideAll
  103.     put "    SYSTEM:  "&choice&return into card field menuList
  104.     set visible of card field menuList to true
  105.     repeat with t = 3 to (card field cardsIn)+2
  106.       if choice is in (card field "system" of card t) then
  107.         put card field "title" of card t after card field menuList
  108.         put return after card field menuList
  109.       end if
  110.     end repeat
  111.     play harpsichord c5
  112.   end if
  113. end systemChoice
  114.  
  115.  
  116.  
  117.  
  118. -- part 15 (field)
  119. -- low flags: 01
  120. -- high flags: 0000
  121. -- rect: left=0 top=32 right=342 bottom=512
  122. -- title width / last selected line: 0
  123. -- icon id / first selected line: 0 / 0
  124. -- text alignment: 0
  125. -- font id: 3
  126. -- text size: 9
  127. -- style flags: 256
  128. -- line height: 12
  129. -- part name: menuList
  130. ----- HyperTalk script -----
  131. on mouseDown
  132.   put the mouseV into it
  133.   put round((it-38)/12) into it
  134.   if it > 0 then
  135.     set rect of button 5 to 0,12*it+32,412,12*(it+1)+32
  136.     set name of button 5 to (line (it+1) of card field menuList)
  137.     set visible of button 5 to true
  138.   end if
  139. end mouseDown
  140.  
  141. on mouseUp
  142.   put the mouseV into it
  143.   put round((it-38)/12) into it
  144.   set visible of button 5 to false
  145.   put line (it+1) of card field menuList into title
  146.   repeat with t = 3 to (card field cardsIn)+2
  147.     if title is (card field "title" of card t) then
  148.       go to card t
  149.     end if
  150.   end repeat
  151. end mouseUp
  152.  
  153.  
  154.  
  155. -- part 2 (field)
  156. -- low flags: 81
  157. -- high flags: 0000
  158. -- rect: left=0 top=32 right=342 bottom=512
  159. -- title width / last selected line: 0
  160. -- icon id / first selected line: 0 / 0
  161. -- text alignment: 0
  162. -- font id: 3
  163. -- text size: 9
  164. -- style flags: 256
  165. -- line height: 12
  166. -- part name: type
  167. ----- HyperTalk script -----
  168. on mouseDown
  169.   put the mouseV into it
  170.   put round((it-38)/12) into it
  171.   set rect of button 5 to 0,12*it+32,412,12*(it+1)+32
  172.   set name of button 5 to (line (it+1) of card field type)
  173.   set visible of button 5 to true
  174. end mouseDown
  175.  
  176. on mouseUp
  177.   repeat with but = 2 to 4
  178.     if hilite of button but is true then
  179.       set hilite of button but to false
  180.     end if
  181.   end repeat
  182.   put the mouseV into it
  183.   put round((it-38)/12) into it
  184.   set visible of button 5 to false
  185.   put "type choice" into card field status
  186.   put return after card field status
  187.   put (line (it+1) of card field type) after card field status
  188.   play c5
  189.   openCard
  190. end mouseUp
  191.  
  192.  
  193.  
  194. -- part 3 (field)
  195. -- low flags: 81
  196. -- high flags: 0000
  197. -- rect: left=0 top=32 right=342 bottom=512
  198. -- title width / last selected line: 0
  199. -- icon id / first selected line: 0 / 0
  200. -- text alignment: 0
  201. -- font id: 3
  202. -- text size: 9
  203. -- style flags: 256
  204. -- line height: 12
  205. -- part name: discipline
  206. ----- HyperTalk script -----
  207. on mouseDown
  208.   put the mouseV into it
  209.   put round((it-38)/12) into it
  210.   set rect of button 5 to 0,12*it+32,412,12*(it+1)+32
  211.   set name of button 5 to (line (it+1) of card field discipline)
  212.   set visible of button 5 to true
  213. end mouseDown
  214.  
  215. on mouseUp
  216.   repeat with but = 2 to 4
  217.     if hilite of button but is true then
  218.       set hilite of button but to false
  219.     end if
  220.   end repeat
  221.   put the mouseV into it
  222.   put round((it-38)/12) into it
  223.   set visible of button 5 to false
  224.   put "discipline choice" into card field status
  225.   put return after card field status
  226.   put (line (it+1) of card field discipline) after card field status
  227.   openCard
  228. end mouseUp
  229.  
  230.  
  231.  
  232. -- part 5 (field)
  233. -- low flags: 81
  234. -- high flags: 0000
  235. -- rect: left=0 top=32 right=342 bottom=512
  236. -- title width / last selected line: 0
  237. -- icon id / first selected line: 0 / 0
  238. -- text alignment: 0
  239. -- font id: 3
  240. -- text size: 9
  241. -- style flags: 256
  242. -- line height: 12
  243. -- part name: system
  244. ----- HyperTalk script -----
  245. on mouseDown
  246.   put the mouseV into it
  247.   put round((it-38)/12) into it
  248.   set rect of button 5 to 0,12*it+32,412,12*(it+1)+32
  249.   set name of button 5 to (line (it+1) of card field system)
  250.   set visible of button 5 to true
  251. end mouseDown
  252.  
  253. on mouseUp
  254.   repeat with but = 2 to 4
  255.     if hilite of button but is true then
  256.       set hilite of button but to false
  257.     end if
  258.   end repeat
  259.   put the mouseV into it
  260.   put round((it-38)/12) into it
  261.   set visible of button 5 to false
  262.   put "system choice" into card field status
  263.   put return after card field status
  264.   put (line (it+1) of card field system) after card field status
  265.   openCard
  266. end mouseUp
  267.  
  268.  
  269.  
  270. -- part 6 (field)
  271. -- low flags: 01
  272. -- high flags: 0002
  273. -- rect: left=0 top=319 right=342 bottom=512
  274. -- title width / last selected line: 0
  275. -- icon id / first selected line: 0 / 0
  276. -- text alignment: 1
  277. -- font id: 21
  278. -- text size: 14
  279. -- style flags: 256
  280. -- line height: 18
  281. -- part name: instructions
  282.  
  283.  
  284. -- part 7 (field)
  285. -- low flags: 81
  286. -- high flags: 0000
  287. -- rect: left=104 top=169 right=256 bottom=429
  288. -- title width / last selected line: 0
  289. -- icon id / first selected line: 0 / 0
  290. -- text alignment: 0
  291. -- font id: 3
  292. -- text size: 12
  293. -- style flags: 0
  294. -- line height: 16
  295. -- part name: status
  296.  
  297.  
  298. -- part 8 (button)
  299. -- low flags: 00
  300. -- high flags: 2003
  301. -- rect: left=0 top=0 right=32 bottom=32
  302. -- title width / last selected line: 0
  303. -- icon id / first selected line: 32488 / 32488
  304. -- text alignment: 1
  305. -- font id: 0
  306. -- text size: 12
  307. -- style flags: 0
  308. -- line height: 16
  309. -- part name: up
  310. ----- HyperTalk script -----
  311. on mouseUp
  312.   set visible of button "last entry seen" to false
  313.   if number of words in card field status is 1 then
  314.     repeat with but = 2 to 4
  315.       if hilite of button but is true then
  316.         set hilite of button but to false
  317.       end if
  318.     end repeat
  319.     go to card 1
  320.   else
  321.     put word 1 of card field status into card field status
  322.     if card field status is "type" then
  323.       set hilite of button "Type of Use" to true
  324.     end if
  325.     if card field status is "system" then
  326.       set hilite of button "System" to true
  327.     end if
  328.     if card field status is "discipline" then
  329.       set hilite of button "Discipline" to true
  330.     end if
  331.     send (word 1 of card field status)
  332.   end if
  333. end mouseUp
  334.  
  335.  
  336.  
  337.  
  338. -- part 9 (button)
  339. -- low flags: 00
  340. -- high flags: A003
  341. -- rect: left=412 top=110 right=132 bottom=512
  342. -- title width / last selected line: 0
  343. -- icon id / first selected line: 0 / 0
  344. -- text alignment: 1
  345. -- font id: 0
  346. -- text size: 12
  347. -- style flags: 0
  348. -- line height: 16
  349. -- part name: System
  350. ----- HyperTalk script -----
  351. on mouseUp
  352.   repeat with but = 2 to 4
  353.     if hilite of button but is true then
  354.       set hilite of button but to false
  355.     end if
  356.   end repeat
  357.   set hilite of button "System" to true
  358.   put "system" into card field status
  359.   openCard
  360. end mouseUp
  361.  
  362.  
  363.  
  364. -- part 10 (button)
  365. -- low flags: 00
  366. -- high flags: A003
  367. -- rect: left=412 top=80 right=102 bottom=512
  368. -- title width / last selected line: 0
  369. -- icon id / first selected line: 0 / 0
  370. -- text alignment: 1
  371. -- font id: 0
  372. -- text size: 12
  373. -- style flags: 0
  374. -- line height: 16
  375. -- part name: Discipline
  376. ----- HyperTalk script -----
  377. on mouseUp
  378.   repeat with but = 2 to 4
  379.     if hilite of button but is true then
  380.       set hilite of button but to false
  381.     end if
  382.   end repeat
  383.   set hilite of button "Discipline" to true
  384.   put "discipline" into card field status
  385.   openCard
  386. end mouseUp
  387.  
  388.  
  389.  
  390. -- part 11 (button)
  391. -- low flags: 00
  392. -- high flags: A003
  393. -- rect: left=412 top=50 right=72 bottom=512
  394. -- title width / last selected line: 0
  395. -- icon id / first selected line: 0 / 0
  396. -- text alignment: 1
  397. -- font id: 0
  398. -- text size: 12
  399. -- style flags: 0
  400. -- line height: 16
  401. -- part name: Type of Use
  402. ----- HyperTalk script -----
  403. on mouseUp
  404.   repeat with but = 2 to 4
  405.     if hilite of button but is true then
  406.       set hilite of button but to false
  407.     end if
  408.   end repeat
  409.   set hilite of button "Type of Use" to true
  410.   put "type" into card field status
  411.   openCard
  412. end mouseUp
  413.  
  414.  
  415.  
  416. -- part 14 (button)
  417. -- low flags: 80
  418. -- high flags: 8001
  419. -- rect: left=0 top=44 right=56 bottom=412
  420. -- title width / last selected line: 0
  421. -- icon id / first selected line: 0 / 0
  422. -- text alignment: 0
  423. -- font id: 3
  424. -- text size: 9
  425. -- style flags: 512
  426. -- line height: 12
  427. -- part name: Molecular Genetics: A Student-Driven Laboratory Simulation
  428.  
  429.  
  430. -- part 16 (field)
  431. -- low flags: 81
  432. -- high flags: 0000
  433. -- rect: left=156 top=120 right=205 bottom=356
  434. -- title width / last selected line: 0
  435. -- icon id / first selected line: 0 / 0
  436. -- text alignment: 0
  437. -- font id: 3
  438. -- text size: 12
  439. -- style flags: 0
  440. -- line height: 16
  441. -- part name: cardsIn
  442.  
  443.  
  444. -- part 17 (button)
  445. -- low flags: 80
  446. -- high flags: A003
  447. -- rect: left=0 top=106 right=156 bottom=80
  448. -- title width / last selected line: 0
  449. -- icon id / first selected line: 3584 / 3584
  450. -- text alignment: 1
  451. -- font id: 0
  452. -- text size: 12
  453. -- style flags: 0
  454. -- line height: 16
  455. -- part name: last entry seen
  456. ----- HyperTalk script -----
  457. on mouseUp
  458.   repeat with t = 3 to (card field cardsIn)+2
  459.     if (line 3 of card field status of card 2) is (card field "title" of card t) then
  460.       go to card t
  461.     end if
  462.   end repeat
  463. end mouseUp
  464.  
  465.  
  466.  
  467. -- part contents for card part 6
  468. ----- text -----
  469. Click on one of the TEXT LINES or BUTTONS above (or "up").
  470.  
  471. -- part contents for card part 7
  472. ----- text -----
  473. type choice
  474. Simulation for Learning
  475.  
  476. -- part contents for card part 15
  477. ----- text -----
  478.     TYPE OF USE:  Simulation for Learning
  479. Molecular Genetics: A Student-Driven Laboratory Simulation
  480. Motion: Simulation of motion for classical mechanics
  481. Electric Fields of Point Charges
  482. Equipotential Surfaces
  483. Scheme: Linear lumped systems analysis, both time and frequency domain
  484.  
  485.  
  486. -- part contents for card part 16
  487. ----- text -----
  488. 18
  489.  
  490. -- part contents for card part 2
  491. ----- text -----
  492. Discipline Tool
  493. General Utility
  494. Simulation for Learning
  495. Tutorial
  496.  
  497.  
  498. -- part contents for card part 5
  499. ----- text -----
  500. Andrew, 7/86 version (BE1, wm)
  501. IBM PC (CMU Tutor)
  502. Macintosh (CMU Tutor)
  503. Workstation CMU Tutor 1.2 (12/87)
  504. X.10 (VSII w/Ultrix 2.0 and Sun3 versions only)
  505.  
  506.  
  507. -- part contents for card part 3
  508. ----- text -----
  509. Algebra
  510. Biology
  511. Electrical Engineering
  512. English
  513. History
  514. Mathematics
  515. Physics
  516. pre-Calculus
  517. Rhetoric
  518. Science
  519. Trigonometry
  520. Writing
  521.