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

  1. -- card: 241403 from stack: in
  2. -- bmap block id: 244313
  3. -- flags: 0000
  4. -- background id: 243874
  5. -- name: ausgewèhlte Zeichen
  6. ----- HyperTalk script -----
  7. on opencard
  8.   put "" into card field NeuesZeichen
  9. end opencard
  10.  
  11. on closecard
  12.  
  13. end closecard
  14.  
  15.  
  16.  
  17. -- part 2 (button)
  18. -- low flags: 00
  19. -- high flags: A003
  20. -- rect: left=287 top=189 right=211 bottom=501
  21. -- title width / last selected line: 0
  22. -- icon id / first selected line: 0 / 0
  23. -- text alignment: 1
  24. -- font id: 0
  25. -- text size: 12
  26. -- style flags: 0
  27. -- line height: 16
  28. -- part name: clear all selected characters
  29. ----- HyperTalk script -----
  30. on mouseUp
  31.   answer "Clear ALL selected characters ?" with "Clear" or "Cancel"
  32.   if it is "Clear"
  33.   then
  34.   put "" into bkgnd field gemerkteZeichen
  35.   global MaxAuswahl
  36.   global AktAuswahl
  37.   put 0 into MaxAuswahl
  38.   put 0 into AktAuswahl
  39. end if
  40. end mouseUp
  41.  
  42.  
  43.  
  44.  
  45. -- part 3 (button)
  46. -- low flags: 00
  47. -- high flags: A003
  48. -- rect: left=286 top=266 right=288 bottom=501
  49. -- title width / last selected line: 0
  50. -- icon id / first selected line: 0 / 0
  51. -- text alignment: 1
  52. -- font id: 0
  53. -- text size: 12
  54. -- style flags: 0
  55. -- line height: 16
  56. -- part name: print selected characters
  57. ----- HyperTalk script -----
  58. on mouseUp
  59.   if bkgnd field "GemerkteZeichen" is not empty
  60.   then
  61.   put "prepare cards for printing.. please wait. "
  62.   global Druckzeichen
  63.   global VKomp
  64.   global VLes
  65.   global VBed
  66.   global VZei
  67.   global VStr
  68.   global HKomp
  69.   global HLes
  70.   global HBed
  71.   global HZei
  72.   global HStr
  73.   put line 1 of card field Layout into VStr
  74.   put line 2 of card field Layout into VLes
  75.   put line 3 of card field Layout into VBed
  76.   put line 4 of card field Layout into VKomp
  77.   put line 5 of card field Layout into VZei
  78.   put line 6 of card field Layout into HStr
  79.   put line 7 of card field Layout into HLes
  80.   put line 8 of card field Layout into HBed
  81.   put line 9 of card field Layout into HKomp
  82.   put line 10 of card field Layout into HZei
  83.   push card
  84.   lock screen
  85.   put 0 into Z├ñhler
  86.   put bkgnd field "GemerkteZeichen" into zuDruckendeZeichen
  87.   repeat until Z├ñhler = number of lines of zuDruckendeZeichen
  88.     put Z├ñhler +1 into Z├ñhler
  89.     put "prepare cards for printing.. (now preparing"&& "card"&&Z├ñhler&&"of"&&number of lines of zuDruckendeZeichen&")"
  90.     get line Z├ñhler of zuDruckendeZeichen
  91.     put it into Druckzeichen
  92.     set cursor to Uhr1
  93.     go card 4+ word 1 of Druckzeichen of MacSunriSE
  94.     put bkgnd field Lesungen into LesungenDruck
  95.     put Bkgnd field Bedeutungen into BedeutungenDruck
  96.     go MacSunriSE.Drucken
  97.     -- R├╝ckseite --
  98.     set cursor to Uhr2
  99.     if HKomp is true
  100.     then
  101.     Kompositahol
  102.   else
  103.     domenu "new card"
  104.     if HLes is true then put LesungenDruck into Bkgnd field Lesungen
  105.     if HBed is true then put BedeutungenDruck into Bkgnd field Bedeutungen
  106.   end if
  107.   set cursor to Uhr3
  108.   if HStr is true
  109.   then
  110.   Strichfolgehol
  111. else
  112.   if HZei is true
  113.   then
  114.   Zeichenhol
  115. end if
  116. end if
  117. go MacSunriSE.Drucken
  118. -- Vorderseite --
  119. set the cursor to Uhr4
  120. if VKomp is true
  121. then
  122. Kompositahol
  123. else
  124.   domenu new card
  125.   if VLes is true then put LesungenDruck into Bkgnd field Lesungen
  126.   if VBed is true then put BedeutungenDruck into Bkgnd field Bedeutungen
  127. end if
  128. set the cursor to Uhr5
  129. if VStr is true
  130. then
  131. Strichfolgehol
  132. else
  133.   if VZei is true
  134.   then
  135.   Zeichenhol
  136. end if
  137. end if
  138. set cursor to Uhr6
  139. set cursor to Uhr7
  140. set cursor to Uhr8
  141. set cursor to Uhr9
  142. set cursor to Uhr10
  143. set cursor to Uhr11
  144. set cursor to Uhr12
  145. set cursor to Uhr13
  146. set cursor to Uhr14
  147. set cursor to Uhr15
  148. set cursor to Uhr1
  149. go card 5 of MacSunriSE
  150. end repeat
  151. hide msg
  152. go MacSunriSE.Drucken
  153. choose browse tool
  154. go first card
  155. doMenu "delete Card"
  156. doMenu "Print Stack..."
  157. lock screen
  158. set cursor to watch
  159. put 1 into Z├ñhler
  160. repeat until Z├ñhler = number of lines of zuDruckendeZeichen *2
  161.   put Z├ñhler +1 into Z├ñhler
  162.   doMenu "Delete Card"
  163. end repeat
  164. domenu "new Background"
  165. choose field tool
  166. drag from 187,42 to 343, 253 with cmdKey
  167. set the name of bkgnd field 1 to "Lesungen"
  168. set the textfont of bkgnd field 1 to chicago
  169. set the style of bkgnd field 1 to shadow
  170. drag from 348,42 to 505, 253 with cmdKey
  171. set the name of bkgnd field 2 to "Bedeutungen"
  172. set the textfont of bkgnd field 2 to chicago
  173. set the style of bkgnd field 2 to shadow
  174. choose Browse Tool
  175. go card one of this stack
  176. domenu "delete card"
  177. domenu "compact stack"
  178. pop card
  179. put 0 into Z├ñhler
  180. repeat until Z├ñhler = number of lines of zuDruckendeZeichen
  181.   put Z├ñhler +1 into Z├ñhler
  182.   pop card
  183. end repeat
  184. unlock screen
  185. else
  186.   answer "no characters are choosen." with "OK"
  187. end if
  188. end mouseUp
  189.  
  190. on Kompositahol
  191.   global Druckzeichen
  192.   go card 4 + word 1 of Druckzeichen of MacSunriSE.Komposita
  193.   domenu copy card
  194.   go MacSunriSE.Drucken
  195.   doMenu paste card
  196.   set script of this background to empty
  197.   choose lasso tool
  198.   domenu select
  199.   domenu copy picture
  200.   choose rectangle tool
  201.   set the filled to true
  202.   set pattern to 1
  203.   drag from 0,0 to 512,58 with optionkey
  204.   drag from 0,0 to 184,276 with optionkey
  205.   drag from 0,253 to 512,342 with optionkey
  206. end Kompositahol
  207.  
  208. on Strichfolgehol
  209.   global Druckzeichen
  210.   go card 4+ word 1 of Druckzeichen of MacSunriSE
  211.   if the number of this card is not 6
  212.   then
  213.   choose browse tool
  214.   click at the loc of bkgnd btn Striche
  215.   click at the loc of card btn "vorheriges Kanji"
  216. end if
  217. choose select tool
  218. drag from 9,43 to 170,199
  219. doMenu "Copy Picture"
  220. go card 2 of MacSunriSE.Drucken
  221. domenu "Paste Picture"
  222. end Strichfolgehol
  223.  
  224. on Zeichenhol
  225.   global Druckzeichen
  226.   go card 4+ word 1 of Druckzeichen of MacSunriSE
  227.   choose select tool
  228.   drag from 9,43 to 170,199
  229.   doMenu "Copy Picture"
  230.   go card 2 of MacSunriSE.Drucken
  231.   domenu "Paste Picture"
  232. end Zeichenhol
  233.  
  234.  
  235.  
  236.  
  237. -- part 6 (field)
  238. -- low flags: 00
  239. -- high flags: 0004
  240. -- rect: left=384 top=112 right=131 bottom=483
  241. -- title width / last selected line: 0
  242. -- icon id / first selected line: 0 / 0
  243. -- text alignment: 1
  244. -- font id: 0
  245. -- text size: 12
  246. -- style flags: 0
  247. -- line height: 16
  248. -- part name: NeuesZeichen
  249. ----- HyperTalk script -----
  250.  
  251. on Mouseup
  252.   put "" into me
  253. end mouseup
  254.  
  255. on returninfield
  256.   get me
  257.   if it is not empty
  258.   then
  259.   set cursor to Uhr1
  260.   global banane
  261.   put me into Banane
  262.   push card
  263.   lock screen
  264.   find word it in bkgnd field GemerkteZeichen
  265.   if the result is "not found"
  266.   then
  267.   go card erste
  268.   find word it in bkgnd field KK
  269.   if the result is "not found"
  270.   then
  271.   pop card
  272.   unlock screen
  273.   Answer "This K&K number does not exist in that version of MacSunriSE."
  274.   put "" into me
  275. else
  276.   put Bkgnd field JIS into Dschis
  277.   pop card
  278.   unlock screen
  279.   if Banane < 1000
  280.   then
  281.   if Banane < 100
  282.   then
  283.   if Banane < 10
  284.   then
  285.   put "  "&Banane into Banane
  286. end if
  287. put "  "&Banane into Banane
  288. end if
  289. put "  "&Banane into Banane
  290. end if
  291. put Banane into NeuZeichen
  292. get bkgnd field GemerkteZeichen
  293. put it & NeuZeichen &"      "&Dschis & Return into bkgnd field Gemerktezeichen
  294. end if
  295. else
  296.   pop card
  297.   unlock screen
  298.   if the foundText = word 2 of line word 2 of the foundLine of bkgnd field 1
  299.   then
  300.   Answer "This K&K number does not exist in that version of MacSunriSE."
  301.   put "" into me
  302. else
  303.   Answer "This character is already selected."
  304.   put "" into me
  305. end if
  306. end if
  307. end if
  308. click at 222,320
  309. click at the loc of me
  310. end returninfield
  311.  
  312. on enterinfield
  313.   get me
  314.   if it is not empty
  315.   then
  316.   global banane
  317.   put me into Banane
  318.   push card
  319.   lock screen
  320.   find word it in bkgnd field GemerkteZeichen
  321.   if the result is "not found"
  322.   then
  323.   go card erste
  324.   find word it in bkgnd field KK
  325.   if the result is "not found"
  326.   then
  327.   pop card
  328.   unlock screen
  329.   Answer "This K&K number does not exist in that version of MacSunriSE."
  330.   put "" into me
  331. else
  332.   put Bkgnd field JIS into Dschis
  333.   pop card
  334.   unlock screen
  335.   if Banane < 1000
  336.   then
  337.   if Banane < 100
  338.   then
  339.   if Banane < 10
  340.   then
  341.   put "  "&Banane into Banane
  342. end if
  343. put "  "&Banane into Banane
  344. end if
  345. put "  "&Banane into Banane
  346. end if
  347. put Banane into NeuZeichen
  348. get bkgnd field GemerkteZeichen
  349. put it & NeuZeichen &"      "&Dschis & Return into bkgnd field Gemerktezeichen
  350. end if
  351. else
  352.   pop card
  353.   unlock screen
  354.   if the foundText = word 2 of line word 2 of the foundLine of bkgnd field 1
  355.   then
  356.   Answer "This K&K number does not exist in that version of MacSunriSE."
  357.   put "" into me
  358. else
  359.   Answer "This character is already selected."
  360.   put "" into me
  361. end if
  362. end if
  363. end if
  364. click at 222,320
  365. click at the loc of me
  366. end enterinfield
  367.  
  368.  
  369.  
  370.  
  371.  
  372. -- part 7 (button)
  373. -- low flags: 00
  374. -- high flags: A003
  375. -- rect: left=287 top=84 right=106 bottom=502
  376. -- title width / last selected line: 0
  377. -- icon id / first selected line: 0 / 0
  378. -- text alignment: 1
  379. -- font id: 0
  380. -- text size: 12
  381. -- style flags: 0
  382. -- line height: 16
  383. -- part name: add character to list
  384. ----- HyperTalk script -----
  385. on mouseUp
  386.   click at the loc of card field "NeuesZeichen"
  387. end mouseUp
  388.  
  389.  
  390.  
  391. -- part 19 (button)
  392. -- low flags: 00
  393. -- high flags: A003
  394. -- rect: left=286 top=237 right=259 bottom=501
  395. -- title width / last selected line: 0
  396. -- icon id / first selected line: 0 / 0
  397. -- text alignment: 1
  398. -- font id: 0
  399. -- text size: 12
  400. -- style flags: 0
  401. -- line height: 16
  402. -- part name: Page Layout...
  403. ----- HyperTalk script -----
  404. on mouseup
  405.   push card
  406.   go MacSunriSE.Layout
  407. end Mouseup
  408.  
  409.  
  410. -- part 8 (button)
  411. -- low flags: 00
  412. -- high flags: 2003
  413. -- rect: left=449 top=292 right=340 bottom=501
  414. -- title width / last selected line: 0
  415. -- icon id / first selected line: 14953 / 14953
  416. -- text alignment: 1
  417. -- font id: 0
  418. -- text size: 12
  419. -- style flags: 0
  420. -- line height: 16
  421. -- part name: Zurƒck
  422. ----- HyperTalk script -----
  423. on mouseUp
  424.   if bkgnd field "GemerkteZeichen" is empty
  425.   then
  426.   pop card
  427.   set the hilite of bkgnd btn id 130 to false
  428. else
  429.   pop card
  430. end if
  431. end mouseUp
  432.  
  433.  
  434.  
  435. -- part 12 (field)
  436. -- low flags: 00
  437. -- high flags: 0004
  438. -- rect: left=384 top=136 right=155 bottom=483
  439. -- title width / last selected line: 0
  440. -- icon id / first selected line: 0 / 0
  441. -- text alignment: 1
  442. -- font id: 0
  443. -- text size: 12
  444. -- style flags: 0
  445. -- line height: 16
  446. -- part name: NeuesZeichenJIS
  447. ----- HyperTalk script -----
  448.  
  449. on Mouseup
  450.   put "" into me
  451. end mouseup
  452.  
  453. on returninfield
  454.   get me
  455.   if it is not empty
  456.   then
  457.   global banane
  458.   put me into DSCHIS
  459.   push card
  460.   lock screen
  461.   find word DSCHIS in bkgnd field GemerkteZeichen
  462.   if the result is "not found"
  463.   then
  464.   go card erste
  465.   put dschis
  466.   find word DSCHIS in bkgnd field JIS
  467.   if the result is "not found"
  468.   then
  469.   pop card
  470.   unlock screen
  471.   Answer "This JIS number does not exist in that version of MacSunriSE."
  472.   put "" into me
  473. else
  474.   put Bkgnd field KK into KAKA
  475.   Put KAKA into Banane
  476.   pop card
  477.   unlock screen
  478.   if Banane < 1000
  479.   then
  480.   if Banane < 100
  481.   then
  482.   if Banane < 10
  483.   then
  484.   put "  "&Banane into Banane
  485. end if
  486. put "  "&Banane into Banane
  487. end if
  488. put "  "&Banane into Banane
  489. end if
  490. put Banane into NeuZeichen
  491. get bkgnd field GemerkteZeichen
  492. put it & NeuZeichen &"      "&Dschis & Return into bkgnd field Gemerktezeichen
  493. put empty into me
  494. end if
  495. else
  496.   pop card
  497.   unlock screen
  498.   if the foundText = word 1 of line word 2 of the foundLine of bkgnd field 2
  499.   then
  500.   Answer "This JIS number does not exist in that version of MacSunriSE."
  501.   put "" into me
  502. else
  503.   Answer "This character is alraedy selected."
  504.   put "" into me
  505. end if
  506. end if
  507. end if
  508. click at 222,320
  509. click at the loc of me
  510. end returninfield
  511.  
  512. on enterinfield
  513.   get me
  514.   if it is not empty
  515.   then
  516.   global banane
  517.   put me into DSCHIS
  518.   push card
  519.   lock screen
  520.   find word it in bkgnd field GemerkteZeichen
  521.   if the result is "not found"
  522.   then
  523.   go card erste
  524.   find word it in bkgnd field JIS
  525.   if the result is "not found"
  526.   then
  527.   pop card
  528.   unlock screen
  529.   Answer "This JIS number does not exist in that version of MacSunriSE."
  530.   put "" into me
  531. else
  532.   put Bkgnd field KK into KAKA
  533.   Put KAKA into Banane
  534.   pop card
  535.   unlock screen
  536.   if Banane < 1000
  537.   then
  538.   if Banane < 100
  539.   then
  540.   if Banane < 10
  541.   then
  542.   put "  "&Banane into Banane
  543. end if
  544. put "  "&Banane into Banane
  545. end if
  546. put "  "&Banane into Banane
  547. end if
  548. put Banane into NeuZeichen
  549. get bkgnd field GemerkteZeichen
  550. put it & NeuZeichen &"      "&Dschis & Return into bkgnd field Gemerktezeichen
  551. put empty into me
  552. end if
  553. else
  554.   pop card
  555.   unlock screen
  556.   if the foundText = word 1 of line word 2 of the foundLine of bkgnd field 2
  557.   then
  558.   Answer "This JIS number does not exist in that version of MacSunriSE."
  559.   put "" into me
  560. else
  561.   Answer "This character is already selected."
  562.   put "" into me
  563. end if
  564. end if
  565. end if
  566. click at 222,320
  567. click at the loc of me
  568. end enterinfield
  569.  
  570.  
  571.  
  572.  
  573.  
  574. -- part 14 (button)
  575. -- low flags: 00
  576. -- high flags: A003
  577. -- rect: left=287 top=161 right=183 bottom=501
  578. -- title width / last selected line: 0
  579. -- icon id / first selected line: 0 / 0
  580. -- text alignment: 1
  581. -- font id: 0
  582. -- text size: 12
  583. -- style flags: 0
  584. -- line height: 16
  585. -- part name: clear specified character
  586. ----- HyperTalk script -----
  587. on mouseUp
  588.   if bkgnd field "GemerkteZeichen" is not empty
  589.   then
  590.   show card field Textzuml├╢schen
  591.   show card button OK
  592. else
  593.   answer "no entries to clear." with "OK"
  594. end if
  595. end mouseUp
  596.  
  597.  
  598.  
  599.  
  600. -- part 15 (field)
  601. -- low flags: 81
  602. -- high flags: 2004
  603. -- rect: left=258 top=78 right=277 bottom=501
  604. -- title width / last selected line: 0
  605. -- icon id / first selected line: 0 / 0
  606. -- text alignment: 0
  607. -- font id: 3
  608. -- text size: 12
  609. -- style flags: 0
  610. -- line height: 16
  611. -- part name: TextzumlÜschen
  612.  
  613.  
  614. -- part 17 (button)
  615. -- low flags: 80
  616. -- high flags: A003
  617. -- rect: left=342 top=207 right=255 bottom=417
  618. -- title width / last selected line: 0
  619. -- icon id / first selected line: 0 / 0
  620. -- text alignment: 1
  621. -- font id: 0
  622. -- text size: 12
  623. -- style flags: 0
  624. -- line height: 16
  625. -- part name: OK
  626. ----- HyperTalk script -----
  627. on mouseUp
  628.   hide me
  629.   hide card field Textzuml├╢schen
  630. end mouseUp
  631.  
  632.  
  633.  
  634. -- part 20 (field)
  635. -- low flags: 80
  636. -- high flags: 0001
  637. -- rect: left=4 top=7 right=211 bottom=95
  638. -- title width / last selected line: 0
  639. -- icon id / first selected line: 0 / 0
  640. -- text alignment: 0
  641. -- font id: 3
  642. -- text size: 12
  643. -- style flags: 0
  644. -- line height: 16
  645. -- part name: Layout
  646.  
  647.  
  648. -- part 23 (field)
  649. -- low flags: 00
  650. -- high flags: 0000
  651. -- rect: left=24 top=281 right=341 bottom=97
  652. -- title width / last selected line: 0
  653. -- icon id / first selected line: 0 / 0
  654. -- text alignment: 0
  655. -- font id: 3
  656. -- text size: 12
  657. -- style flags: 0
  658. -- line height: 16
  659. -- part name: 
  660.  
  661.  
  662. -- part 30 (field)
  663. -- low flags: 00
  664. -- high flags: 0000
  665. -- rect: left=18 top=273 right=304 bottom=48
  666. -- title width / last selected line: 0
  667. -- icon id / first selected line: 0 / 0
  668. -- text alignment: 0
  669. -- font id: 3
  670. -- text size: 12
  671. -- style flags: 0
  672. -- line height: 16
  673. -- part name: 
  674.  
  675.  
  676. -- part 31 (field)
  677. -- low flags: 00
  678. -- high flags: 0000
  679. -- rect: left=56 top=295 right=337 bottom=90
  680. -- title width / last selected line: 0
  681. -- icon id / first selected line: 0 / 0
  682. -- text alignment: 0
  683. -- font id: 3
  684. -- text size: 12
  685. -- style flags: 0
  686. -- line height: 16
  687. -- part name: 
  688.  
  689.  
  690. -- part contents for card part 15
  691. ----- text -----
  692. To clear one ore more specified characters from this field, just click with the scissors at the number (K&K or JIS) of this field.
  693. When ready to continue normal session, hit the OK-Button below.
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701. -- part contents for card part 20
  702. ----- text -----
  703. false
  704. true
  705. true
  706. false
  707. true
  708. true
  709. false
  710. false
  711. true
  712. false
  713.  
  714.  
  715. -- part contents for background part 36
  716. ----- text -----
  717.       2      1676
  718.