Фокус первый
Add(MainForm,2953706,315,133)
{
Width=629
Height=432
Color=12639424
Caption="Математический фокус 1"
BorderStyle=3
Position=1
link(onCreate,11789807:doWork1,[])
}
Add(ChildPanel,11789807,371,147)
{
}
BEGIN_SDK
Add(EditMulti,4275331,21,21)
{
WorkCount=1
Width=678
Height=319
link(doWork1,5416932:doEvent1,[])
}
Add(Panel,3004575,98,35)
{
Left=15
Width=600
Height=399
Color=12639424
BorderWidth=0
BevelWidth=0
}
Add(Button,5913685,112,259)
{
Left=270
Top=60
Width=65
Height=50
Caption=""
Point(doCaption)
link(onClick,1944797:doData,[])
}
Add(MultiElementEx,9643669,252,112)
{
}
BEGIN_SDK
Add(EditMultiEx,2634137,14,21)
{
WorkCount=#8:doEvent1|8:doRandom|
Width=636
Height=214
link(doEvent1,14179863:doEvent1,[(35,27)(35,41)])
link(doRandom,13754695:doRandom,[(26,34)(26,188)])
}
Add(StrList,15917,231,49)
{
Strings=#1:A|1:B|1:C|1:D|1:E|1:F|1:G|1:H|1:I|1:J|1:K|1:L|1:M|1:N|1:O|1:P|1:Q|1:R|1:S|1:T|1:U|1:V|1:W|1:X|1:Y|1:Z|
}
Add(For,14577238,147,105)
{
End=2
link(onEvent,16393590:doRandom,[])
}
Add(Random,16393590,196,105)
{
Max=25
link(onRandom,4188350:doRead,[])
}
Add(ArrayRW,4188350,245,105)
{
link(onRead,16070490:doStrCat,[])
link(Array,15917:Array,[])
}
Add(StrCat,16070490,308,105)
{
Point(doClear)
link(onStrCat,15533928:doCompare,[])
link(Str1,16070490:Result,[(314,93)(286,93)(286,149)(314,149)])
}
Add(StrMask,15533928,350,105)
{
Mask="???"
link(onTrue,10783427:doEvent1,[])
}
Add(Hub,10783427,399,112)
{
OutCount=3
link(onEvent1,12205641:doAdd,[])
link(onEvent2,16070490:doClear,[(422,125)(422,156)(296,156)(296,118)])
link(onEvent3,239793:doValue,[])
}
Add(For,9612013,98,105)
{
End=19
link(onEvent,14577238:doFor,[])
}
Add(GlobalVar,239793,434,126)
{
Name="sim"
}
Add(StrList,12205641,490,112)
{
}
Add(Hub,14179863,56,35)
{
link(onEvent1,12205641:doClear,[(463,41)(463,125)])
link(onEvent2,9612013:doFor,[(84,48)(84,111)])
}
Add(GlobalVar,3424478,560,182)
{
Name="vse"
}
Add(ArrayRW,11904575,504,182)
{
link(onRead,3424478:doValue,[])
link(Array,12205641:Array,[])
}
Add(Random,13754695,455,182)
{
Max=19
link(onRandom,11904575:doRead,[])
}
END_SDK
Add(Hub,6220411,98,112)
{
InCount=2
OutCount=5
link(onEvent1,9643669:doEvent1,[])
link(onEvent2,13407183:##clear,[(130,125)(130,181)])
link(onEvent3,4222427:doClear,[(123,132)(123,104)])
link(onEvent4,9124540:doRandomize,[(136,139)(136,132)])
link(onEvent5,9124540:doStart,[(136,146)(136,125)])
}
Add(GlobalVar,9064511,168,217)
{
Name="sim"
}
Add(MultiElementEx,9124540,161,119)
{
link(onRead,6286488:doEvent1,[])
}
BEGIN_SDK
Add(EditMultiEx,8320285,28,21)
{
WorkCount=#7:doStart|11:doRandomize|
EventCount=#6:onRead|
Width=496
Height=228
VOffset=56
HOffset=35
link(doStart,12554549:doEvent1,[])
link(doRandomize,6970021:doRandomize,[(256,90)(256,118)])
}
Add(StrList,4338961,364,98)
{
Point(doGetString)
Point(onGetString)
link(onGetString,12120153:doAdd,[])
}
Add(For,9710409,98,98)
{
End=99
link(onEvent,4338961:doAdd,[])
link(onStop,9058500:doFor,[(145,111)(145,125)])
}
Add(Random,6970021,266,105)
{
Max=0
Point(doMax)
link(onRandom,4135268:doEvent1,[])
}
Add(For,9058500,168,119)
{
Start=99
Step=-1
link(onEvent,15570432:doEvent1,[])
}
Add(Hub,15570432,217,119)
{
link(onEvent1,6970021:doMax,[(249,125)(249,132)])
link(onEvent2,6970021:doRandom,[(249,132)(249,111)])
}
Add(Hub,4135268,322,105)
{
link(onEvent1,4338961:doGetString,[(353,111)(353,146)])
link(onEvent2,4338961:doDelete,[])
}
Add(StrList,12120153,434,105)
{
}
Add(Hub,12554549,56,77)
{
OutCount=3
link(onEvent1,12120153:doClear,[(414,83)(414,118)])
link(onEvent2,9710409:doFor,[(91,90)(91,104)])
link(onEvent3,4360376:doFor,[(83,97)(83,181)])
}
Add(For,4360376,392,175)
{
End=99
link(onEvent,15374089:doRead,[])
}
Add(ArrayRW,15374089,448,175)
{
link(onRead,8320285:onRead,[(503,181)(503,83)])
link(Array,12120153:Array,[])
}
END_SDK
Add(MultiElementEx,15864060,294,126)
{
link(onStrCat,15957959:doEvent1,[])
}
BEGIN_SDK
Add(EditMultiEx,7124589,41,21)
{
WorkCount=#9:doCompare|
EventCount=#8:onStrCat|
Width=937
Height=508
link(doCompare,9218818:doValue,[(63,27)(63,76)])
}
Add(If_else,8804442,266,77)
{
Op2=String(9)
link(onTrue,5241203:doString,[])
link(onFalse,15526548:doCompare,[(310,90)(310,132)])
}
Add(GlobalVar,11967328,329,35)
{
Name="sim"
}
Add(FormatStr,5241203,323,77)
{
Mask="%1 - %2"
link(onFString,8789798:doWork2,[])
link(Str2,2185012:Var2,[(336,73)(335,73)])
}
Add(If_else,15526548,322,126)
{
Op2=String(18)
link(onTrue,79372:doString,[])
link(onFalse,5893257:doCompare,[(366,139)(366,181)])
}
Add(FormatStr,79372,379,126)
{
Mask="%1 - %2"
link(onFString,15160853:doWork2,[])
link(Str2,6402110:Var2,[])
}
Add(If_else,5893257,378,175)
{
Op2=String(27)
link(onTrue,11170277:doString,[])
link(onFalse,14843025:doCompare,[(422,188)(422,230)])
}
Add(GlobalVar,8142509,819,434)
{
Name="vse"
}
Add(FormatStr,11170277,435,175)
{
Mask="%1 - %2"
link(onFString,12988479:doWork2,[])
link(Str2,4944874:Var2,[])
}
Add(If_else,14843025,434,224)
{
Op2=String(36)
link(onTrue,10761937:doString,[])
link(onFalse,6423176:doCompare,[(478,237)(478,279)])
}
Add(FormatStr,10761937,491,224)
{
Mask="%1 - %2"
link(onFString,7837336:doWork2,[])
link(Str2,13899524:Var2,[])
}
Add(If_else,6423176,490,273)
{
Op2=String(45)
link(onTrue,6068060:doString,[])
link(onFalse,4756181:doCompare,[(534,286)(534,328)])
}
Add(FormatStr,6068060,547,273)
{
Mask="%1 - %2"
link(onFString,4018116:doWork2,[])
link(Str2,2510794:Var2,[])
}
Add(If_else,4756181,546,322)
{
Op2=String(54)
link(onTrue,10431702:doString,[])
link(onFalse,2765328:doCompare,[(590,335)(590,377)])
}
Add(FormatStr,10431702,603,322)
{
Mask="%1 - %2"
link(onFString,2495115:doWork2,[])
link(Str2,15428642:Var2,[])
}
Add(If_else,2765328,602,371)
{
Op2=String(63)
link(onTrue,6958133:doString,[])
link(onFalse,16285444:doCompare,[(646,384)(646,426)])
}
Add(FormatStr,6958133,659,371)
{
Mask="%1 - %2"
link(onFString,1360877:doWork2,[])
link(Str2,9350370:Var2,[])
}
Add(If_else,16285444,658,420)
{
Op2=String(72)
link(onTrue,11705715:doString,[])
link(onFalse,12507120:doCompare,[(702,433)(702,475)])
}
Add(FormatStr,11705715,714,420)
{
Mask="%1 - %2"
link(onFString,6637457:doWork2,[])
link(Str2,16577958:Var2,[])
}
Add(HubEx,6637457,873,420)
{
Angle=3
link(onEvent,1360877:doWork3,[])
}
Add(HubEx,1360877,873,371)
{
Angle=3
link(onEvent,2495115:doWork3,[])
}
Add(HubEx,2495115,873,322)
{
Angle=3
link(onEvent,4018116:doWork3,[])
}
Add(HubEx,4018116,873,273)
{
Angle=3
link(onEvent,7837336:doWork3,[])
}
Add(HubEx,7837336,873,224)
{
Angle=3
link(onEvent,12988479:doWork3,[])
}
Add(HubEx,12988479,873,175)
{
Angle=3
link(onEvent,15160853:doWork3,[])
}
Add(HubEx,15160853,873,126)
{
Angle=3
link(onEvent,8789798:doWork3,[])
}
Add(HubEx,8789798,873,77)
{
Angle=3
link(onEvent,9742877:doValue,[(877,27)])
}
Add(If_else,12507120,714,469)
{
Op2=String(81)
link(onTrue,16530727:doString,[])
link(onFalse,13715716:doString,[])
}
Add(FormatStr,16530727,770,469)
{
Mask="%1 - %2"
link(onFString,12531086:doWork2,[])
link(Str2,16577958:Var3,[(783,61)])
}
Add(HubEx,12531086,873,469)
{
Angle=3
link(onEvent,6637457:doWork3,[])
}
Add(GetDataEx,2185012,329,56)
{
link(Data,11967328:Var,[])
}
Add(GetDataEx,16577958,721,56)
{
Angle=3
link(Data,9350370:Var3,[])
}
Add(GetDataEx,9350370,666,56)
{
Angle=3
link(Data,15428642:Var3,[])
}
Add(GetDataEx,15428642,610,56)
{
Angle=3
link(Data,2510794:Var3,[])
}
Add(GetDataEx,2510794,554,56)
{
Angle=3
link(Data,13899524:Var3,[])
}
Add(GetDataEx,13899524,498,56)
{
Angle=3
link(Data,4944874:Var3,[])
}
Add(GetDataEx,4944874,442,56)
{
Angle=3
link(Data,6402110:Var3,[])
}
Add(GetDataEx,6402110,386,56)
{
Angle=3
link(Data,2185012:Var3,[])
}
Add(FormatStr,13715716,812,476)
{
Mask="%1 - %2"
link(onFString,12531086:doWork3,[(877,482)])
link(Str2,8142509:Var,[])
}
Add(If_else,5003689,168,77)
{
Type=1
Op2=String(2)
link(onTrue,7272619:doString,[])
link(onFalse,16498614:doWork3,[(256,90)])
link(Op1,10429278:Result,[])
}
Add(Length,10429278,168,28)
{
}
Add(FormatStr,7272619,213,77)
{
DataCount=1
Mask="%1 "
link(onFString,16498614:doWork2,[])
link(Str1,9218818:Value,[(219,68)(157,68)(157,111)(90,111)])
}
Add(Memory,9218818,84,70)
{
link(onData,1252823:doEvent1,[])
}
Add(Hub,1252823,126,70)
{
link(onEvent1,10429278:doLength,[(149,76)(149,34)])
link(onEvent2,5003689:doCompare,[])
}
Add(HubEx,16498614,252,77)
{
link(onEvent,8804442:doCompare,[])
}
Add(GlobalVar,9742877,903,21)
{
Name="pan"
link(onValue,7124589:onStrCat,[])
}
END_SDK
Add(Hub,6286488,210,119)
{
link(onEvent1,9643669:doRandom,[])
link(onEvent2,15864060:doCompare,[])
}
Add(ChildPanelEx,13407183,385,168)
{
Mode=1
}
BEGIN_SDK
Add(EditMultiEx,10036085,21,21)
{
WorkCount=#5:##add|7:##clear|
Width=482
Point(##add)
Point(##clear)
link(##add,6929241:doEvent1,[(36,27)(36,62)])
}
Add(Panel,6560198,245,56)
{
Left=35
Top=105
Height=25
Color=12639424
BorderWidth=0
BevelWidth=0
Point(doLeft)
Point(doTop)
}
Add(DoData,13836281,196,56)
{
link(onEventData,6560198:doCaption,[])
link(Data,16538475:Var,[])
}
Add(GlobalVar,16538475,196,28)
{
Name="pan"
}
Add(Hub,6929241,56,56)
{
OutCount=3
link(onEvent1,13836281:doData,[])
link(onEvent2,8223877:doData,[])
link(onEvent3,5214963:doData,[])
}
Add(DoData,8223877,105,63)
{
link(onEventData,6560198:doLeft,[])
link(Data,16562673:Var,[])
}
Add(GlobalVar,16562673,105,35)
{
Name="x"
}
Add(DoData,5214963,147,70)
{
link(onEventData,6560198:doTop,[])
link(Data,13147503:Var,[])
}
Add(GlobalVar,13147503,147,42)
{
Name="y"
}
END_SDK
Add(Hub,15957959,336,126)
{
link(onEvent1,8537873:doOperation,[])
link(onEvent2,13407183:##add,[(368,139)(368,174)])
}
Add(GlobalVar,1568711,448,70)
{
Name="x"
link(onValue,3616571:doCompare,[])
}
Add(GlobalVar,13868083,658,84)
{
Name="y"
}
Add(If_else,3616571,497,70)
{
Op2=String(540)
link(onTrue,3455012:doEvent1,[])
}
Add(Hub,3455012,546,70)
{
link(onEvent1,4222427:doOperation,[(588,76)(588,90)])
link(onEvent2,8537873:doClear,[(572,83)(572,115)(380,115)(380,146)])
}
Add(Math,8537873,399,126)
{
Op1=-60
Op2=60
Default=-60
Point(doDefault)
Point(doClear)
link(onResult,1568711:doValue,[(439,132)(439,76)])
link(Op1,8537873:Result,[(405,109)(388,109)(388,163)(405,163)])
}
Add(Math,4222427,616,84)
{
Op1=125
Op2=25
Default=125
Point(doDefault)
Point(doClear)
link(onResult,13868083:doValue,[])
link(Op1,4222427:Result,[(622,72)(604,72)(604,125)(622,125)])
}
Add(Hub,5416932,35,21)
{
link(onEvent1,3638314:doWork1,[(59,27)])
link(onEvent2,3638314:doWork2,[])
}
Add(HubEx,3638314,55,28)
{
Angle=1
link(onEvent,6220411:doEvent1,[(59,118)])
}
Add(DoData,1944797,168,259)
{
link(onEventData,7934208:doEvent1,[])
link(Data,9064511:Var,[])
}
Add(Hub,7934208,217,259)
{
link(onEvent1,8414851:doWork2,[(242,265)(242,250)(91,250)(91,265)])
link(onEvent2,1874012:doData,[])
}
Add(Label,6656228,322,259)
{
Left=260
Top=120
Color=12639424
Visible=1
Cursor=2
Caption="Не понял, еще раз."
Point(doVisible)
link(onClick,11834859:doEvent1,[(362,265)(362,258)])
}
Add(DoData,1874012,252,266)
{
Data=Integer(1)
link(onEventData,3518774:doWork2,[])
}
Add(DoData,7108037,420,259)
{
Data=Integer(0)
link(onEventData,3518774:doWork1,[(462,265)(462,312)(305,312)])
}
Add(HubEx,3518774,301,266)
{
link(onEvent,6656228:doVisible,[])
}
Add(Hub,11834859,371,252)
{
OutCount=4
link(onEvent1,9064511:doValue,[(401,258)(401,243)(155,243)(155,223)])
link(onEvent2,7108037:doData,[])
link(onEvent3,8414851:doWork3,[(397,272)(397,303)(102,303)])
link(onEvent4,6220411:doEvent2,[(409,279)(409,206)(86,206)(86,125)])
}
Add(HubEx,8414851,98,259)
{
link(onEvent,5913685:doCaption,[])
}
Add(ChildPanelRush,751558,147,35)
{
}
BEGIN_SDK
Add(EditMultiEx,10977305,21,21)
{
}
Add(PanelRush,2554309,35,105)
{
Left=35
Top=5
Width=550
ColorFrom=12639424
ColorTo=12639424
BorderColor=12639424
BorderWidth=0
Caption="Задумайте любое двухзначное число. (например 54). Вычтите из него составляющии его цифры (например 54 - 5 - 4 = 45). Найдите это число в таблице и запомните буквы которые ему соответствуют. Вообразите эти буквы и щелкните по кнопке, на ней должны появиться эти буквы."
Glyphs=[]
}
END_SDK
END_SDK
Фокус второй
Add(MainForm,2953706,301,147)
{
Width=554
Height=357
Color=12639424
Caption="Математический фокус 2"
BorderStyle=3
Position=1
}
Add(ChildPanel,3186461,364,147)
{
}
BEGIN_SDK
Add(EditMulti,13692584,21,21)
{
Width=643
Height=452
}
Add(Panel,8733211,35,105)
{
Left=5
Top=5
Width=536
Height=323
Color=12639424
BorderWidth=0
BevelWidth=0
}
Add(Label,3615484,74,21)
{
Left=95
Top=20
Width=272
Height=17
Color=12639424
Caption="1. Загадайте четырехзначное число (например 7382)"
}
Add(Label,11656312,119,21)
{
Left=95
Top=45
Width=363
Height=17
Color=12639424
Caption="2. Теперь из цифр этого числа составте новое число (например 3278)"
}
Add(Label,14922392,161,21)
{
Left=95
Top=70
Width=343
Height=17
Color=12639424
Caption="3. Отнимите от большего из этих чисел меньшее (7382-3278=4104)"
}
Add(Label,5212861,205,21)
{
Left=95
Top=95
Width=300
Height=17
Color=12639424
Caption="4. Вычеркните одну из цифр (( ноль вычеркивать нельзя ))"
}
Add(Label,3154699,245,21)
{
Left=135
Top=125
Width=220
Height=17
Color=12639424
Caption="То есть 404-правильно а 414 неправильно"
}
Add(Label,5655159,291,21)
{
Left=95
Top=150
Width=357
Height=17
Color=12639424
Caption="5. Введите полученное число и компьюте угадает зачеркнутую цифру"
}
Add(Edit,11437318,238,119)
{
Left=235
Top=215
Color=12639424
Text=""
}
Add(Button,9880851,147,154)
{
Left=230
Top=250
Width=65
Caption="Угадать"
link(onClick,1959600:doEvent1,[])
}
Add(Str_Enum,3841451,238,182)
{
Delimiter=""
link(onEnum,1685873:doOperation,[])
link(String,11437318:Text,[])
}
Add(Label,1974851,539,182)
{
Left=310
Top=295
Width=11
Height=17
Caption="Х"
}
Add(Math,1685873,308,182)
{
Point(doClear)
link(onResult,16424669:doCompare,[])
link(Op1,8670726:Var2,[])
}
Add(Hub,1959600,196,154)
{
OutCount=4
link(onEvent1,1685873:doClear,[(284,160)(284,195)])
link(onEvent2,9609691:doClear,[(435,167)(435,195)])
link(onEvent3,10853299:doClear,[(353,174)(353,230)])
link(onEvent4,3841451:doEnum,[(224,181)(224,188)])
}
Add(MathParse,9609691,449,182)
{
DataCount=1
MathStr="9 - %1"
Point(doClear)
link(onResult,14043119:doWork2,[])
link(X1,1213929:Var2,[])
}
Add(MathParse,10853299,483,217)
{
DataCount=1
MathStr="18 - %1"
Point(doClear)
link(onResult,14043119:doWork3,[(529,223)])
link(X1,1213929:Var3,[(489,133)])
}
Add(HubEx,14043119,525,182)
{
link(onEvent,1974851:doText,[])
}
Add(Label,2727556,336,21)
{
Left=180
Top=295
Width=124
Height=17
Color=12639424
Caption="Вы зачеркнули число -- "
}
Add(If_else,16424669,371,182)
{
Type=3
link(onTrue,9609691:doCalc,[])
link(onFalse,10853299:doCalc,[(424,195)(424,223)])
link(Op2,8041376:Var,[])
}
Add(GlobalVar,8041376,378,140)
{
Name="a"
Data=Integer(9)
}
Add(GetDataEx,8670726,308,128)
{
Angle=3
link(Data,1685873:Result,[(298,133)(298,229)(314,229)])
}
Add(GetDataEx,1213929,449,128)
{
Angle=3
link(Data,8670726:Var3,[(384,133)(384,133)])
}
Add(Label,10858319,91,168)
{
Left=135
Top=175
Width=269
Height=17
Color=12639424
Caption=".... Также можно загадывать и трехзначные цифры."
}
END_SDK