Вверх ↑
Ответов: 10
Рейтинг: 0
#1: 2017-05-16 12:10:10 ЛС | профиль | цитата
Тема развивается
Можно ли сделать как у Tri-j с вводом ответа и результатами с оценкой (метод подсчета идеальная, Леонид сделал, хотелось бы не менять алгоритм)?
Схема

Add(MainForm,2953706,280,154)
{
Left=150
Top=150
Width=1000
Height=700
Color=16777215
Caption="Арифметика"
BorderStyle=1
Position=1
Point(onResize)
Point(doVisible)
}
Add(ChildForm,10664002,210,203)
{
FirstUsage=0
link(onEvent1,12296468:doWork2,[(254,209)(254,195)(184,195)(184,167)])
link(onEvent2,2953706:doClose,[(328,216)(328,146)(272,146)(272,181)])
}
BEGIN_SDK
Add(EditMulti,1816715,28,21)
{
EventCount=2
WorkCount=1
link(doWork1,7871042:doVisible,[(98,27)(98,160)])
}
Add(MainForm,7871042,168,126)
{
Left=150
Top=150
Width=1000
Height=700
Color=16777215
Visible=1
Caption="Ментальная арифметика"
BorderStyle=1
Position=1
Point(doVisible)
Point(doShowModal)
Point(Close)
link(onDeactivate,1816715:onEvent2,[(305,139)(305,34)])
link(onCreate,3226392:doRandomize,[(548,146)(548,293)])
link(Close,7103936:GetData,[])
}
Add(Edit,3421245,154,322)
{
Left=250
Top=120
Height=30
Font=[Times New Roman,16,0,0,204]
Text="6"
Alignment=2
DataType=2
link(onChange,12305315:doCompare,[])
}
Add(Label,10535381,105,322)
{
Left=25
Top=120
Width=189
Height=31
Color=16777215
Font=[Times New Roman,18,0,0,204]
Ctl3D=0
WinStyle=1
Caption="Количество чисел"
Alignment=1
}
Add(Label,11215073,455,336)
{
Left=35
Top=160
Width=179
Height=31
Color=16777215
Font=[Times New Roman,18,0,0,204]
Ctl3D=0
WinStyle=1
Caption="Максимум чисел"
Alignment=1
}
Add(Edit,1004421,497,336)
{
Left=250
Top=160
Height=30
Font=[Times New Roman,16,0,0,204]
Text="10"
Alignment=2
DataType=2
link(onChange,3226392:doMax,[(549,342)(549,307)])
}
Add(Label,2463147,105,266)
{
Left=85
Top=200
Width=131
Height=31
Color=16777215
Font=[Times New Roman,18,0,0,204]
Ctl3D=0
WinStyle=1
Caption="Время [сек.]"
Alignment=1
}
Add(Edit,6883629,147,266)
{
Left=250
Top=200
Height=30
Font=[Times New Roman,16,0,0,204]
Text="1,5"
Alignment=2
link(onChange,11299494:doReplace,[])
}
Add(Button,272013,105,210)
{
Left=415
Top=375
Width=165
Height=65
Font=[Times New Roman,18,0,0,204]
Caption="Пуск"
Point(doCaption)
Point(doEnabled)
link(onClick,15207824:doNext,[])
}
Add(Label,14996047,840,287)
{
Left=430
Top=95
Width=324
Height=199
Color=16777215
Font=[Times New Roman,126,1,8388608,0]
Caption=""
AutoSize=1
Alignment=2
}
Add(Counter,15207824,161,210)
{
Max=1
link(onNext,12199532:doEvent,[])
}
Add(IndexToChanel,12199532,210,210)
{
link(onEvent1,4892058:doEvent1,[])
link(onEvent2,573428:doEvent1,[(263,223)(263,237)])
}
Add(Hub,4892058,273,210)
{
link(onEvent1,11348986:doClear,[])
link(onEvent2,14620672:doStrCat,[(746,223)(746,237)])
}
Add(Hub,573428,273,231)
{
OutCount=4
link(onEvent1,7070058:doClear,[(361,237)(361,216)])
link(onEvent2,5213580:doEvent1,[(459,244)(459,258)])
link(onEvent3,13633120:doTimer,[(312,251)(312,258)])
link(onEvent4,7225863:doWork1,[(298,258)(298,202)(46,202)(46,223)])
}
Add(Memory,11348986,322,203)
{
Default=String(Пуск)
link(onData,7070058:doValue,[])
}
Add(Memory,7070058,371,203)
{
Default=String(Ответ)
link(onData,272013:doCaption,[(410,209)(410,188)(95,188)(95,216)])
}
Add(Timer,13633120,322,252)
{
Interval=1500
Enable=1
AutoStop=6
Point(doInterval)
Point(doAutoStop)
Point(onStop)
link(onTimer,14594308:doEvent1,[(459,258)(459,279)])
link(onStop,749223:doTimer,[])
}
Add(Math,16240659,231,266)
{
OpType=2
Op1=1000
ResultType=0
link(onResult,13339051:doEvent1,[])
}
Add(If_else,12305315,203,322)
{
Type=1
Op2=Integer(2)
link(onTrue,10971891:doClear,[])
link(onFalse,13633120:doAutoStop,[(309,335)(309,279)])
}
Add(Memory,10971891,252,315)
{
Default=Integer(2)
link(onData,3421245:doText,[(291,321)(291,307)(144,307)(144,328)])
}
Add(Random,3226392,560,280)
{
Min=1
Max=10
Point(doMax)
link(onRandom,9647612:doRandom,[])
}
Add(MathParse,587192,658,280)
{
DataCount=3
MathStr="%1*(1-%2*%3*2)"
Point(doMathStr)
link(onResult,2447104:doEvent1,[])
link(X1,3226392:Random,[(664,271)(650,271)(650,320)(566,320)])
link(X2,3063466:Checked,[])
}
Add(CheckBox,3063466,665,189)
{
Left=268
Top=248
Width=14
Height=15
Font=[Times New Roman,18,0,0,204]
Caption=""
}
Add(Replace,11299494,189,266)
{
SubStr=","
DestStr="."
link(onReplace,16240659:doOperation,[])
}
Add(Random,9647612,609,280)
{
Max=1
link(onRandom,587192:doCalc,[])
}
Add(Hub,2447104,700,280)
{
link(onEvent1,2790209:doOperation,[(725,286)(725,188)])
link(onEvent2,6558888:doCompare,[])
}
Add(If_else,6558888,735,287)
{
Type=2
Op2=Integer(0)
link(onTrue,16181566:doStrCat,[])
link(onFalse,12894811:doWork2,[])
}
Add(StrCat,16181566,777,287)
{
link(onStrCat,6865705:doWork2,[])
}
Add(HubEx,6865705,819,287)
{
link(onEvent,14996047:doText,[])
}
Add(Hub,14594308,469,273)
{
link(onEvent1,15103996:doWork3,[(501,279)])
link(onEvent2,5161885:doTimer,[])
}
Add(Timer,5161885,504,280)
{
Interval=50
Enable=1
AutoStop=1
link(onTimer,3226392:doRandom,[])
}
Add(Math,2790209,763,182)
{
Point(doClear)
link(Op1,6096831:Var1,[(769,173)(755,173)(755,222)])
}
Add(Timer,749223,371,259)
{
Interval=1500
Enable=1
AutoStop=1
link(onTimer,12663507:doEvent1,[])
}
Add(Hub,13339051,273,266)
{
link(onEvent1,13633120:doInterval,[])
link(onEvent2,749223:doStop,[(298,279)(298,293)(361,293)(361,272)])
}
Add(Hub,12663507,413,259)
{
OutCount=3
link(onEvent1,13633120:doStop,[(438,265)(438,300)(312,300)(312,265)])
link(onEvent2,7225863:doWork2,[(445,272)(445,195)(39,195)(39,230)])
link(onEvent3,9878912:doData,[(445,279)(445,300)])
}
Add(GetDataEx,6096831,763,217)
{
link(Data,2790209:Result,[])
}
Add(HubEx,7342929,819,259)
{
Angle=1
link(onEvent,6865705:doWork1,[])
}
Add(StrCat,14620672,756,231)
{
link(onStrCat,7342929:doWork1,[(823,237)])
link(Str2,6096831:Var2,[])
}
Add(Hub,5213580,469,252)
{
link(onEvent1,2790209:doClear,[(732,258)(732,195)])
link(onEvent2,15103996:doWork2,[])
}
Add(HubEx,15103996,497,259)
{
link(onEvent,7342929:doWork2,[])
}
Add(ChanelToIndex,7225863,56,217)
{
link(onIndex,272013:doEnabled,[])
}
Add(DoData,9878912,455,294)
{
Data=String(=)
link(onEventData,12894811:doWork3,[(543,300)(543,328)(823,328)])
}
Add(HubEx,12894811,819,294)
{
Angle=3
link(onEvent,6865705:doWork3,[])
}
Add(Label,5275224,102,263)
{
Left=95
Top=240
Width=119
Height=31
Color=16777215
Font=[Times New Roman,18,0,0,204]
Ctl3D=0
WinStyle=1
Caption="Вычитание"
Alignment=1
}
Add(EventFromData,7103936,168,70)
{
link(onEvent,11990419:doEvent1,[(226,76)(226,55)])
}
Add(Hub,11990419,252,49)
{
link(onEvent1,7871042:doClose,[(278,55)(278,41)(156,41)(156,153)])
link(onEvent2,1816715:onEvent1,[(297,62)(297,27)])
}
END_SDK
Add(Button,9825617,91,196)
{
Left=415
Top=450
Width=165
Height=65
Font=[Times New Roman,18,0,0,204]
Caption="НАЧАТЬ"
link(onClick,164005:doEvent1,[])
}
Add(Hub,164005,154,196)
{
link(onEvent1,12296468:doWork1,[(178,202)(178,160)])
link(onEvent2,10664002:doWork1,[])
}
Add(ChanelToIndex,12296468,196,154)
{
link(onIndex,2953706:doVisible,[(254,160)(254,188)])
}
карма: 0
Новичок Я
0
Редактировалось 5 раз(а), последний 2017-05-17 08:38:14