home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc1_2_x / macsunrs.sit / MacSUNRISE / card_10882.txt < prev    next >
Text File  |  1990-07-20  |  13KB  |  542 lines

  1. -- card: 10882 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 11035
  5. -- name: Suchkarte
  6. ----- HyperTalk script -----
  7. on opencard
  8. end opencard
  9.  
  10. on closecard
  11. end closecard
  12.  
  13. on returnkey
  14.   click at the loc of card btn zur├╝ck
  15. end returnkey
  16.  
  17. -on domenu menu
  18. if menu is "New Stack..."or menu is "save a Copy..." or menu is "quit hypercard" or menu is "Protect Stack..."or menu is "delete Stack..." or menu is "Background" or menu is "new card" or menu is "delete card" or Menu is "Cut Card" or menu is "Back" or menu is "Help" or Menu is "Recent" or menu is "First" or menu is "Last" or menu is "prev" or menu is "next" or menu is "find..."
  19. then
  20. if menu is "quit hypercard" and the short name of this card is "Suchkarte"
  21. then
  22. click at the loc of card btn beenden
  23. end if
  24. if menu is "New Stack..."or menu is "save a Copy..." or menu is "delete Stack..."
  25. then
  26. play boing
  27. end if
  28. if menu is "Protect Stack..." or menu is "Background"
  29. then
  30. answer "ooops!" with "'sorry"
  31. end if
  32. if menu is "delete card" or Menu is "Cut Card"
  33. then
  34. play boing
  35. end if
  36. if menu is "new card"
  37. then
  38. play boing
  39. end if
  40. if menu is "Back" or Menu is "Recent"
  41. then
  42. play boing
  43. end if
  44. if menu is "Help"
  45. then
  46. pop card
  47. click at the loc of bkgnd btn Hilfe
  48. end if
  49. if menu is "First"
  50. then
  51. go first card of this background
  52. end if
  53. if menu is "Last"
  54. then
  55. go last card of this background
  56. end if
  57. if menu is "next"
  58. then
  59. beep
  60. end if
  61. if menu is "prev"
  62. then
  63. beep
  64. end if
  65. if menu is "find..."
  66. then
  67. click at the loc of card btn Suchen
  68. end if
  69. else
  70.   pass domenu
  71. end if
  72. end domenu
  73.  
  74.  
  75.  
  76. -- part 4 (button)
  77. -- low flags: 00
  78. -- high flags: 8006
  79. -- rect: left=17 top=252 right=272 bottom=172
  80. -- title width / last selected line: 0
  81. -- icon id / first selected line: 0 / 0
  82. -- text alignment: 1
  83. -- font id: 0
  84. -- text size: 12
  85. -- style flags: 0
  86. -- line height: 16
  87. -- part name: JIS
  88. ----- HyperTalk script -----
  89. on mouseUp
  90.   set hilite of button Bedeutungen to false
  91.   set hilite of button Lesungen to false
  92.   set hilite of button "K&K" to false
  93.   set hilite of btn " Notiz zu Lesungen" to false
  94.   set hilite of btn "  Notiz zu Bedeut." to false
  95.   set hilite of btn "Notiz zu Komposita" to false
  96.   set hilite of me to true
  97.   global Suchbegriff
  98.   put "JIS" into Suchbegriff
  99.   click at the loc of btn Suchen
  100. end mouseUp
  101.  
  102.  
  103.  
  104. -- part 5 (button)
  105. -- low flags: 00
  106. -- high flags: 8006
  107. -- rect: left=17 top=212 right=231 bottom=172
  108. -- title width / last selected line: 0
  109. -- icon id / first selected line: 0 / 0
  110. -- text alignment: 1
  111. -- font id: 0
  112. -- text size: 12
  113. -- style flags: 0
  114. -- line height: 16
  115. -- part name: K&K
  116. ----- HyperTalk script -----
  117. on mouseUp
  118.   set hilite of button Bedeutungen to false
  119.   set hilite of button Lesungen to false
  120.   set hilite of button JIS to false
  121.   set hilite of btn " Notiz zu Lesungen" to false
  122.   set hilite of btn "  Notiz zu Bedeut." to false
  123.   set hilite of btn "Notiz zu Komposita" to false
  124.   set hilite of me to true
  125.   global Suchbegriff
  126.   put "KK" into Suchbegriff
  127.   click at the loc of btn Suchen
  128. end mouseUp
  129.  
  130.  
  131.  
  132. -- part 8 (button)
  133. -- low flags: 00
  134. -- high flags: 2003
  135. -- rect: left=7 top=40 right=208 bottom=178
  136. -- title width / last selected line: 0
  137. -- icon id / first selected line: 8538 / 8538
  138. -- text alignment: 1
  139. -- font id: 0
  140. -- text size: 12
  141. -- style flags: 0
  142. -- line height: 16
  143. -- part name: Suchen
  144. ----- HyperTalk script -----
  145. on mouseUp
  146.   set the hilite of me to true
  147.   set the hilite of me to false
  148.   global Suchbegriff
  149.   global findwort
  150.   if the hilite of btn "Lesungen" is true then put "readings" into Suchbegriff
  151.   if the hilite of btn "Bedeutungen" is true then put "meanings" into Suchbegriff
  152.   if the hilite of btn " Notiz zu Lesungen" is true then put "note / readings" into Suchbegriff
  153.   if the hilite of btn "  Notiz zu Bedeut." is true then put "note / meanings" into Suchbegriff
  154.   if the hilite of btn "K&K" is true then put "KK" into Suchbegriff
  155.   if the hilite of btn "JIS" is true then put "JIS" into Suchbegriff
  156.   put Suchbegriff into Fragebegriff
  157.   if Fragebegriff="KK"
  158.   then
  159.   put"K&K"into Fragebegriff
  160. end if
  161. Ask "Word to search for in '" & Fragebegriff&"'" with findwort
  162. if it is not empty
  163. then
  164. global Findwort
  165. put it into findwort
  166. set cursor to watch
  167. lock screen
  168. pop card
  169. put the id of this card into Istcard
  170. push card
  171. set the cursor to Lupe
  172. if Suchbegriff is "readings" then put "Lesungen" into Suche
  173. if Suchbegriff is "meanings" then put "Bedeutungen" into Suche
  174. if Suchbegriff is "note / readings" then put "Notiz zu Lesungen" into Suche
  175. if Suchbegriff is "note / meanings" then put "Notiz zu Bedeut." into Suche
  176. find word findwort in bkgnd field Suche
  177. if the result = "not found"
  178. then
  179. play boing
  180. go card Suchkarte
  181. unlock screen
  182. else
  183.   if the id of this card is Istcard
  184.   then
  185.   pop card
  186. else
  187.   pop card
  188.   go back
  189. end if
  190. global Suchbegriff
  191. if (Suchbegriff <> "JIS") and (Suchbegriff <> "KK") then
  192.   if Suchbegriff is "readings"
  193.   then
  194.   if the hilite of bkgnd btn "Lesungen" is false then click at the loc of bkgnd btn "Lesungen"
  195. end if
  196. if Suchbegriff is "meanings"
  197. then
  198. if the hilite of bkgnd btn "Bedeutungen" is false then click at the loc of bkgnd btn "Bedeutungen"
  199. end if
  200. if Suchbegriff is "note / readings"
  201. then
  202. if the hilite of bkgnd btn "Notiz zu Lesungen" is false then click at the loc of bkgnd btn "Notiz zu Lesungen"
  203. end if
  204. if Suchbegriff is "note / meanings"
  205. then
  206. if the hilite of bkgnd btn "Notiz zu Bedeut." is false then click at the loc of bkgnd btn "Notiz zu Bedeut."
  207. end if
  208. else
  209.   if (Suchbegriff = "JIS") and (the visible of bkgnd btn "JIS" is false)
  210.   then
  211.   click at the loc of bkgnd btn "JIS"
  212. end if
  213. if (Suchbegriff = "KK") and (the visible of bkgnd btn "K&K" is false)
  214. then
  215. click at the loc of bkgnd btn "K&K"
  216. end if
  217. end if
  218. unlock screen
  219. end if
  220. end if
  221. end mouseUp
  222.  
  223.  
  224.  
  225. -- part 12 (button)
  226. -- low flags: 00
  227. -- high flags: 0006
  228. -- rect: left=187 top=256 right=275 bottom=340
  229. -- title width / last selected line: 0
  230. -- icon id / first selected line: 0 / 0
  231. -- text alignment: 1
  232. -- font id: 0
  233. -- text size: 12
  234. -- style flags: 0
  235. -- line height: 16
  236. -- part name:  Notiz zu Lesungen
  237. ----- HyperTalk script -----
  238. on mouseUp
  239.   set hilite of button Bedeutungen to false
  240.   set hilite of button Lesungen to false
  241.   set hilite of button JIS to false
  242.   set hilite of button "K&K" to false
  243.   set hilite of btn "  Notiz zu Bedeut." to false
  244.   set hilite of btn "Notiz zu Komposita" to false
  245.   set hilite of me to true
  246.   global Suchbegriff
  247.   put "note / readings" into Suchbegriff
  248.   click at the loc of btn Suchen
  249. end mouseUp
  250.  
  251.  
  252.  
  253. -- part 13 (button)
  254. -- low flags: 00
  255. -- high flags: 0006
  256. -- rect: left=349 top=256 right=275 bottom=507
  257. -- title width / last selected line: 0
  258. -- icon id / first selected line: 0 / 0
  259. -- text alignment: 1
  260. -- font id: 0
  261. -- text size: 12
  262. -- style flags: 0
  263. -- line height: 16
  264. -- part name:   Notiz zu Bedeut.
  265. ----- HyperTalk script -----
  266. on mouseUp
  267.   set hilite of button Bedeutungen to false
  268.   set hilite of button Lesungen to false
  269.   set hilite of button JIS to false
  270.   set hilite of button "K&K" to false
  271.   set hilite of btn " Notiz zu Lesungen" to false
  272.   set hilite of btn "Notiz zu Komposita" to false
  273.   set hilite of me to true
  274.   global Suchbegriff
  275.   put "  Notiz zu Bedeut." into Suchbegriff
  276.   click at the loc of btn Suchen
  277. end mouseUp
  278.  
  279.  
  280.  
  281. -- part 14 (button)
  282. -- low flags: 00
  283. -- high flags: 0006
  284. -- rect: left=187 top=22 right=41 bottom=342
  285. -- title width / last selected line: 0
  286. -- icon id / first selected line: 0 / 0
  287. -- text alignment: 1
  288. -- font id: 0
  289. -- text size: 12
  290. -- style flags: 0
  291. -- line height: 16
  292. -- part name: Lesungen
  293. ----- HyperTalk script -----
  294. on mouseUp
  295.   set hilite of button Bedeutungen to false
  296.   set hilite of button JIS to false
  297.   set hilite of button "K&K" to false
  298.   set hilite of btn "  Notiz zu Bedeut." to false
  299.   set hilite of btn " Notiz zu Lesungen" to false
  300.   set hilite of btn "Notiz zu Komposita" to false
  301.   set hilite of me to true
  302.   global Suchbegriff
  303.   put "Lesungen" into Suchbegriff
  304.   click at the loc of btn Suchen
  305. end mouseUp
  306.  
  307.  
  308.  
  309. -- part 15 (button)
  310. -- low flags: 00
  311. -- high flags: 4006
  312. -- rect: left=349 top=22 right=41 bottom=505
  313. -- title width / last selected line: 0
  314. -- icon id / first selected line: 0 / 0
  315. -- text alignment: 1
  316. -- font id: 0
  317. -- text size: 12
  318. -- style flags: 0
  319. -- line height: 16
  320. -- part name: Bedeutungen
  321. ----- HyperTalk script -----
  322. on mouseUp
  323.   set hilite of button Lesungen to false
  324.   set hilite of button JIS to false
  325.   set hilite of button "K&K" to false
  326.   set hilite of btn "  Notiz zu Bedeut." to false
  327.   set hilite of btn " Notiz zu Lesungen" to false
  328.   set hilite of btn "Notiz zu Komposita" to false
  329.   set hilite of me to true
  330.   global Suchbegriff
  331.   put "Bedeutungen" into Suchbegriff
  332.   click at the loc of btn Suchen
  333. end mouseUp
  334.  
  335.  
  336.  
  337. -- part 16 (button)
  338. -- low flags: 00
  339. -- high flags: 2003
  340. -- rect: left=12 top=276 right=320 bottom=178
  341. -- title width / last selected line: 0
  342. -- icon id / first selected line: 14953 / 14953
  343. -- text alignment: 1
  344. -- font id: 0
  345. -- text size: 12
  346. -- style flags: 0
  347. -- line height: 16
  348. -- part name: zurƒck
  349. ----- HyperTalk script -----
  350. on mouseUp
  351.   pop card
  352. end mouseUp
  353.  
  354.  
  355.  
  356.  
  357. -- part 17 (button)
  358. -- low flags: 00
  359. -- high flags: 8000
  360. -- rect: left=96 top=4 right=20 bottom=191
  361. -- title width / last selected line: 0
  362. -- icon id / first selected line: 0 / 0
  363. -- text alignment: 1
  364. -- font id: 0
  365. -- text size: 12
  366. -- style flags: 0
  367. -- line height: 16
  368. -- part name: 15:56
  369.  
  370.  
  371. -- part 18 (button)
  372. -- low flags: 00
  373. -- high flags: 8000
  374. -- rect: left=289 top=4 right=20 bottom=352
  375. -- title width / last selected line: 0
  376. -- icon id / first selected line: 0 / 0
  377. -- text alignment: 1
  378. -- font id: 0
  379. -- text size: 12
  380. -- style flags: 0
  381. -- line height: 16
  382. -- part name: 00:01
  383.  
  384.  
  385. -- part 19 (button)
  386. -- low flags: 00
  387. -- high flags: 8000
  388. -- rect: left=348 top=3 right=19 bottom=505
  389. -- title width / last selected line: 0
  390. -- icon id / first selected line: 0 / 0
  391. -- text alignment: 1
  392. -- font id: 0
  393. -- text size: 12
  394. -- style flags: 0
  395. -- line height: 16
  396. -- part name: 26.6.1990
  397.  
  398.  
  399. -- part 20 (button)
  400. -- low flags: 00
  401. -- high flags: 8004
  402. -- rect: left=187 top=42 right=61 bottom=506
  403. -- title width / last selected line: 0
  404. -- icon id / first selected line: 0 / 0
  405. -- text alignment: 1
  406. -- font id: 0
  407. -- text size: 12
  408. -- style flags: 0
  409. -- line height: 16
  410. -- part name: compounds
  411. ----- HyperTalk script -----
  412. on mouseUp
  413.  
  414. end mouseUp
  415.  
  416.  
  417.  
  418. -- part 22 (button)
  419. -- low flags: 00
  420. -- high flags: 8004
  421. -- rect: left=348 top=59 right=78 bottom=505
  422. -- title width / last selected line: 0
  423. -- icon id / first selected line: 0 / 0
  424. -- text alignment: 1
  425. -- font id: 0
  426. -- text size: 12
  427. -- style flags: 0
  428. -- line height: 16
  429. -- part name: readings
  430.  
  431.  
  432. -- part 21 (button)
  433. -- low flags: 00
  434. -- high flags: 0006
  435. -- rect: left=348 top=58 right=77 bottom=504
  436. -- title width / last selected line: 0
  437. -- icon id / first selected line: 0 / 0
  438. -- text alignment: 1
  439. -- font id: 0
  440. -- text size: 12
  441. -- style flags: 0
  442. -- line height: 16
  443. -- part name: Lesung
  444. ----- HyperTalk script -----
  445. on mouseUp
  446.   global Locken
  447.   put false into Locken
  448.   lock screen
  449.   pop card
  450.   Kompositaan
  451.   click at the loc of bkgnd btn Suchen
  452.   unlock screen
  453.   click at the loc of btn Lesung
  454. end mouseUp
  455.  
  456.  
  457.  
  458. -- part 24 (button)
  459. -- low flags: 00
  460. -- high flags: 8004
  461. -- rect: left=348 top=76 right=95 bottom=505
  462. -- title width / last selected line: 0
  463. -- icon id / first selected line: 0 / 0
  464. -- text alignment: 1
  465. -- font id: 0
  466. -- text size: 12
  467. -- style flags: 0
  468. -- line height: 16
  469. -- part name: meanings
  470.  
  471.  
  472. -- part 23 (button)
  473. -- low flags: 00
  474. -- high flags: 0006
  475. -- rect: left=348 top=76 right=95 bottom=504
  476. -- title width / last selected line: 0
  477. -- icon id / first selected line: 0 / 0
  478. -- text alignment: 1
  479. -- font id: 0
  480. -- text size: 12
  481. -- style flags: 0
  482. -- line height: 16
  483. -- part name: Bedeutung
  484. ----- HyperTalk script -----
  485. on mouseUp
  486.   global Locken
  487.   put false into Locken
  488.   lock screen
  489.   pop card
  490.   Kompositaan
  491.   click at the loc of bkgnd btn Suchen
  492.   unlock screen
  493.   click at the loc of btn Bedeutung
  494. end mouseUp
  495.  
  496.  
  497.  
  498. -- part 25 (button)
  499. -- low flags: 00
  500. -- high flags: 2006
  501. -- rect: left=187 top=276 right=295 bottom=506
  502. -- title width / last selected line: 0
  503. -- icon id / first selected line: 0 / 0
  504. -- text alignment: 1
  505. -- font id: 0
  506. -- text size: 12
  507. -- style flags: 0
  508. -- line height: 16
  509. -- part name: Notiz zu Komposita
  510. ----- HyperTalk script -----
  511. on mouseUp
  512.   global Locken
  513.   put false into Locken
  514.   lock screen
  515.   pop card
  516.   Kompositaan
  517.   click at the loc of bkgnd btn Suchen
  518.   unlock screen
  519.   click at the loc of btn "Notiz zu Komposita"
  520. end mouseUp
  521.  
  522.  
  523.  
  524. -- part 27 (button)
  525. -- low flags: 00
  526. -- high flags: A003
  527. -- rect: left=448 top=323 right=342 bottom=512
  528. -- title width / last selected line: 0
  529. -- icon id / first selected line: 0 / 0
  530. -- text alignment: 1
  531. -- font id: 0
  532. -- text size: 12
  533. -- style flags: 0
  534. -- line height: 16
  535. -- part name: quit
  536. ----- HyperTalk script -----
  537. on mouseUp
  538.   pop card
  539.   domenu quit hypercard
  540. end mouseUp
  541.  
  542.