home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc1_2_x / macsunrs.sit / MacSUNRISE.Komposita / stack.txt < prev   
Text File  |  1990-07-20  |  8KB  |  280 lines

  1. -- stack: in.Komposita
  2. -- format: 8 (HyperCard 1)
  3. -- flags: 0x1000 (none)
  4. -- protect password hash: 0
  5. -- maximum user level: 3 (painting)
  6. -- window: Rect(x1=0, y1=0, x2=0, y2=0)
  7. -- screen: Rect(x1=0, y1=0, x2=0, y2=0)
  8. -- card dimensions: w=0 h=0
  9. -- scroll: x=0 y=0
  10. -- background count: 5
  11. -- first background id: 2746
  12. -- card count: 14
  13. -- first card id: 8548
  14. -- list block id: 3872
  15. -- print block id: 7941
  16. -- font table block id: 0
  17. -- style table block id: 0
  18. -- free block count: 4
  19. -- free size: 25760 bytes
  20. -- total size: 106496 bytes
  21. -- stack block size: 9728 bytes
  22. -- created by hypercard version: 0x00000000
  23. -- compacted by hypercard version: 0x01258000
  24. -- modified by hypercard version: 0x01228000
  25. -- opened by hypercard version: 0x01258000
  26. -- patterns[0]: 0x0000000000000000
  27. -- patterns[1]: 0x8000000008000000
  28. -- patterns[2]: 0x8800220088002200
  29. -- patterns[3]: 0x8888222288882222
  30. -- patterns[4]: 0x88AA22AA88AA22AA
  31. -- patterns[5]: 0xCCAA33AACCAA33AA
  32. -- patterns[6]: 0xEEAABBAAEEAABBAA
  33. -- patterns[7]: 0xEEBBBBEEEEBBBBEE
  34. -- patterns[8]: 0xFFBBFFEEFFBBFFEE
  35. -- patterns[9]: 0xFFBBFFFFFFBBFFFF
  36. -- patterns[10]: 0x8010022001084004
  37. -- patterns[11]: 0xFFFFFFFFFFFFFFFF
  38. -- patterns[12]: 0x8822882288228822
  39. -- patterns[13]: 0x1122448811224488
  40. -- patterns[14]: 0xC4800C6843023026
  41. -- patterns[15]: 0xB130031BD8C00C8D
  42. -- patterns[16]: 0xAA00AA00AA00AA00
  43. -- patterns[17]: 0x8822552288225522
  44. -- patterns[18]: 0x8855225588552255
  45. -- patterns[19]: 0x77DD77DD77DD77DD
  46. -- patterns[20]: 0x8000000000000000
  47. -- patterns[21]: 0xAA55AA55AA55AA55
  48. -- patterns[22]: 0x038448300C020101
  49. -- patterns[23]: 0x8244394482010101
  50. -- patterns[24]: 0x8814224188412214
  51. -- patterns[25]: 0x8080413E080814E3
  52. -- patterns[26]: 0x22048C7422179810
  53. -- patterns[27]: 0xBE808808EB088880
  54. -- patterns[28]: 0x25C8328964244C92
  55. -- patterns[29]: 0xA29C41BE2AC914EB
  56. -- patterns[30]: 0x40A00000040A0000
  57. -- patterns[31]: 0x8040200002040800
  58. -- patterns[32]: 0xAA00800088008000
  59. -- patterns[33]: 0xFF80808080808080
  60. -- patterns[34]: 0x081C22C180010204
  61. -- patterns[35]: 0xFF808080FF080808
  62. -- patterns[36]: 0xF87422478F172271
  63. -- patterns[37]: 0xBF00BFBFB0B0B0B0
  64. -- patterns[38]: 0xFF7FBE5DA2418000
  65. -- patterns[39]: 0xFAF5FAF5A050A050
  66. -- checksum: 0x0
  67. ----- HyperTalk script -----
  68. on startup
  69.   go MacSunriSE
  70.   send startup to MacSunriSE
  71. end startup
  72.  
  73. on openStack
  74.   show card Picture
  75.   global Locken
  76.   put true into Locken
  77. end openStack
  78.  
  79. on closestack
  80.   if the number of this card >4 then hide bkgnd btn id 131
  81. end closestack
  82.  
  83. on arrowKey whichKey
  84.   if whichKey is "left" then click at the loc of bkgnd button "vorheriges Kanji"
  85.   if whichKey is "right" then click at the loc of bkgnd button "n├ñchstes Kanji"
  86. end arrowKey
  87.  
  88.  
  89. on domenu menu
  90.   if (menu is "New Stack..."or menu is "save a Copy..." or menu is "Protect Stack..."or menu is "delete Stack..." or menu is "Background" or menu is "Cut Card" or menu is "new card" or menu is "delete 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..." or menu is "quit hypercard" or menu is "paste card" or menu is "print report...") and (the short name of this stack is not "MacSunriSE.Drucken")
  91.   then
  92.   if menu is "New Stack..."or menu is "save a Copy..." or menu is "delete Stack..." or menu is "paste card" or menu is "print report..."
  93.   then
  94.   beep
  95. end if
  96. if menu is "Protect Stack..." or menu is "Background"
  97. then
  98. if the commandkey is not down or the optionkey is not down
  99. then
  100. answer "ooops!" with "'sorry"
  101. else
  102.   ask "Das Passwort bittesch├╢n.."
  103.   if it is not "the commandkey"
  104.   then
  105.   answer "Passwort ist falsch!"
  106. else
  107.   pass domenu
  108. end if
  109. end if
  110. end if
  111. if menu is "delete card" or Menu is "Cut Card"
  112. then
  113. beep
  114. end if
  115. if menu is "new card"
  116. then
  117. beep
  118. end if
  119. if menu is "Back" or Menu is "Recent"
  120. then
  121. beep
  122. end if
  123. if menu is "Help"
  124. then
  125. Kompositaaus
  126. click at the loc of bkgnd btn help
  127. end if
  128. if menu is "First"
  129. then
  130. go first card of this background
  131. end if
  132. if menu is "Last"
  133. then
  134. go last card of this background
  135. end if
  136. if menu is "next"
  137. then
  138. click at the loc of bkgnd btn "n├ñchstes Kanji"
  139. end if
  140. if menu is "prev"
  141. then
  142. click at the loc of bkgnd btn "vorheriges Kanji"
  143. end if
  144. if menu is "find..."
  145. then
  146. click at the loc of bkgnd btn Suchen
  147. end if
  148. else
  149.   pass domenu
  150. end if
  151. end domenu
  152.  
  153. on selectChoice
  154.   put the short name of the target into thename
  155.   get the rect of the target
  156.   put item 2 of it into top
  157.   get the textheight of the target
  158.   put it into size
  159.   put ((item 2 of the clickloc)-top+size) div size into lineNumber
  160.   send (thename&linenumber) to target
  161. end selectchoice
  162.  
  163. on EinzelAbfrageLesungen
  164.   set cursor to watch
  165.   put the short name of bkgnd field Lesungen into thename
  166.   get the rect of bkgnd field "Lesungen"
  167.   put item 2 of it into top
  168.   get the textheight of bkgnd field "Lesungen"
  169.   put it into size
  170.   put ((item 2 of the clickloc)-top+size) div size into lineNumber
  171.   if linenumber = 1 and the visible of bkgnd btn Komposita is true
  172.   then
  173.   Kompositaaus
  174.   exit EinzelAbfrageLesungen
  175. end if
  176. if the hilite of bkgnd btn Abfrage is true
  177. then
  178. set the hilite of bkgnd btn Abfrage to false
  179. set the hilite of bkgnd btn Abfrage to true
  180. set the hilite of bkgnd btn Abfrage to false
  181. set the hilite of bkgnd btn Abfrage to true
  182. end if
  183. send (thename&linenumber) to bkgnd field "Lesungen"
  184. end EinzelAbfrageLesungen
  185.  
  186. on EinzelAbfrageBedeutungen
  187.   set cursor to watch
  188.   put the short name of bkgnd field Bedeutungen into thename
  189.   get the rect of bkgnd field "Bedeutungen"
  190.   put item 2 of it into top
  191.   get the textheight of bkgnd field "Bedeutungen"
  192.   put it into size
  193.   put ((item 2 of the clickloc)-top+size) div size into lineNumber
  194.   if linenumber = 1 and the visible of bkgnd btn Komposita is true
  195.   then
  196.   Kompositaaus
  197.   exit EinzelAbfrageBedeutungen
  198. end if
  199. if the hilite of bkgnd btn Abfrage is true
  200. then
  201. set the hilite of bkgnd btn Abfrage to false
  202. set the hilite of bkgnd btn Abfrage to true
  203. set the hilite of bkgnd btn Abfrage to false
  204. set the hilite of bkgnd btn Abfrage to true
  205. end if
  206. send (thename&linenumber) to bkgnd field "Bedeutungen"
  207. end EinzelAbfrageBedeutungen
  208.  
  209. on Kompositaaus
  210.   set the cursor to Uhr1
  211.   if the visible of bkgnd btn "selected characters" is true
  212.   then
  213.   click at the loc of bkgnd btn Umschalter
  214. end if
  215. lock screen
  216. put the short name of bkgnd btn id 147 into Startzeit
  217. put the short name of bkgnd btn id 148 into Lernzeit
  218. put the short name of bkgnd btn id 122 into unteregrenze
  219. put the short name of bkgnd btn id 123 into oberegrenze
  220. put the short name of bkgnd btn id 165 into Bl├ñttergeschw
  221. set the cursor to Uhr2
  222. put the hilite of bkgnd btn Abfrage into AbfrageK
  223. put the hilite of bkgnd btn Auswahl into AuswahlK
  224. put the hilite of bkgnd btn Zufall into ZufallK
  225. put the hilite of bkgnd btn Ton into TonK
  226. put the visible of bkgnd btn JIS into JISan
  227. put the visible of bkgnd btn "K&K" into KKan
  228. put bkgnd field KK into AktKanJi
  229. push card
  230. go card 2
  231. put bkgnd field "gemerktezeichen" into GZ
  232. put card field Layout into Lay
  233. pop card
  234. go to fifth card of MacSunriSE
  235. set the cursor to Uhr4
  236. set the hilite of bkgnd btn Auswahl to AuswahlK
  237. if the hilite of bkgnd btn Auswahl is true
  238. then
  239. click at the loc of bkgnd btn Auswahl
  240. click at the loc of bkgnd btn Auswahl
  241. end if
  242. find word AktKanJi in bkgnd field KK
  243. show bkgnd btn Hilfe
  244. set the name of bkgnd btn id 147 to Startzeit
  245. set the name of bkgnd btn id 148 to Lernzeit
  246. set the name of bkgnd btn id 122 to unteregrenze
  247. set the name of bkgnd btn id 123 to oberegrenze
  248. set the name of bkgnd btn id 158 to Bl├ñttergeschw
  249. set the cursor to Uhr5
  250. set the hilite of bkgnd btn Abfrage to AbfrageK
  251. set the hilite of bkgnd btn Zufall to ZufallK
  252. set the hilite of bkgnd btn Ton to TonK
  253. set the visible of bkgnd btn Abfrage to true
  254. set the visible of bkgnd btn JIS to Jisan
  255. set the Visible of bkgnd btn "K&K" to KKan
  256. push card
  257. go card 2
  258. put GZ into bkgnd field "gemerkteZeichen"
  259. put Lay into card field Layout
  260. pop card
  261. if the visible of bkgnd btn Jis is true
  262. then
  263. show Bkgnd field JIS
  264. hide bkgnd field KK
  265. end if
  266. if the visible of bkgnd btn "K&K" is true
  267. then
  268. show Bkgnd field KK
  269. hide bkgnd field JIS
  270. end if
  271. set the cursor to Uhr6
  272. click at 200,200
  273. global Locken
  274. if Locken is true then unlock screen
  275. hide msg
  276. end Kompositaaus
  277.  
  278.  
  279.  
  280.