home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc2_x / tongubng.sea / TongueBingo / background_6944.txt < prev    next >
Text File  |  1991-08-27  |  3KB  |  100 lines

  1. -- background: 6944 from stack: in
  2. -- bmap block id: 7583
  3. -- flags: 4000
  4. -- background id: 0
  5. -- name: Aloitus
  6. ----- HyperTalk script -----
  7. on openBackground
  8.   global v,h -- putkahdusvalikon sijainti
  9.   get the rect of bg button 1
  10.   put (last item of it) + top of card window into v
  11.   put (first item of it) + left of card window + 1 into h
  12. end openBackground
  13.  
  14.  
  15. -- part 1 (button)
  16. -- low flags: 00
  17. -- high flags: A004
  18. -- rect: left=21 top=87 right=107 bottom=126
  19. -- title width / last selected line: 0
  20. -- icon id / first selected line: 0 / 0
  21. -- text alignment: 1
  22. -- font id: 0
  23. -- text size: 12
  24. -- style flags: 0
  25. -- line height: 16
  26. -- part name: Choose Tongue
  27. ----- HyperTalk script -----
  28. on mouseDown -- putkahdusvalikko
  29.   global v,h, kieli, aValinta
  30.   if the commandKey is down -- jotta p├ñ├ñsee muokkaamaan Kielivalikkoa!
  31.   then show field "Kielivalikko"
  32. else if the optionKey is down then hide field "Kielivalikko"
  33. else -- pelkk├ñ hiiripainike
  34.   get PopUpMenu(field "Kielivalikko",0,h,v)
  35.   if it is empty then exit mouseDown
  36.   put line it of field "Kielivalikko" into kieli
  37.   put 1 into aValinta
  38.   visual effect iris open
  39.   go to card kieli of background "Sanasto"
  40.   -- kunkin kielen ensimm├ñinen kortti on nimetty kielen mukaan!
  41.   openCard -- go ei riit├ñ avaamaan korttia!!
  42. end if
  43. end mouseDown
  44.  
  45.  
  46. -- part 2 (field)
  47. -- low flags: 80
  48. -- high flags: 2007
  49. -- rect: left=33 top=107 right=307 bottom=129
  50. -- title width / last selected line: 0
  51. -- icon id / first selected line: 0 / 0
  52. -- text alignment: 0
  53. -- font id: 0
  54. -- text size: 12
  55. -- style flags: 0
  56. -- line height: 16
  57. -- part name: Kielivalikko
  58.  
  59.  
  60. -- part 3 (button)
  61. -- low flags: 00
  62. -- high flags: 0000
  63. -- rect: left=450 top=78 right=110 bottom=483
  64. -- title width / last selected line: 0
  65. -- icon id / first selected line: 32462 / 32462
  66. -- text alignment: 1
  67. -- font id: 0
  68. -- text size: 12
  69. -- style flags: 0
  70. -- line height: 16
  71. -- part name: Avaa ohjeet
  72. ----- HyperTalk script -----
  73. on mouseUp
  74.   show card field Ohjeita
  75.   if the commandKey is down -- jotta p├ñ├ñsee muokkaamaan teksti├ñ!
  76.   then set lockText of cd field Ohjeita to false
  77. else set lockText of cd field Ohjeita to true
  78. end mouseUp
  79.  
  80.  
  81. -- part 4 (button)
  82. -- low flags: 00
  83. -- high flags: 0000
  84. -- rect: left=450 top=32 right=64 bottom=483
  85. -- title width / last selected line: 0
  86. -- icon id / first selected line: 1011 / 1011
  87. -- text alignment: 1
  88. -- font id: 0
  89. -- text size: 12
  90. -- style flags: 0
  91. -- line height: 16
  92. -- part name: Kotiin
  93. ----- HyperTalk script -----
  94. on mouseUp
  95.   visual effect iris close
  96.   go home
  97. end mouseUp
  98.  
  99.  
  100.