Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
|
|
@ -0,0 +1,18 @@
|
|||
command enableButtons v
|
||||
switch
|
||||
case v <= 0
|
||||
put 0 into fld "Field1"
|
||||
set the enabled of btn "Button1" to true
|
||||
set the enabled of btn "Button2" to false
|
||||
break
|
||||
case v >= 10
|
||||
put 10 into fld "Field1"
|
||||
set the enabled of btn "Button1" to false
|
||||
set the enabled of btn "Button2" to true
|
||||
break
|
||||
default
|
||||
set the enabled of btn "Button1" to true
|
||||
set the enabled of btn "Button2" to true
|
||||
put v into fld "Field1"
|
||||
end switch
|
||||
end enableButtons
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
on mouseUp
|
||||
put field "Field1" into x
|
||||
add 1 to x
|
||||
enableButtons x
|
||||
end mouseUp
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
on mouseUp
|
||||
put field "Field1" into x
|
||||
subtract 1 from x
|
||||
enableButtons x
|
||||
end mouseUp
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
on rawKeyDown k
|
||||
if numToChar(k) is among the items of "1,2,3,4,5,6,7,8,9,0" then
|
||||
if (numToChar(k) + the text of me) <= 10 then
|
||||
enableButtons (numToChar(k) + the text of me)
|
||||
end if
|
||||
else if k = 65288 then
|
||||
pass rawKeyDown
|
||||
end if
|
||||
end rawKeyDown
|
||||
Loading…
Add table
Add a link
Reference in a new issue