Add(Button,8764201,189,35)
{
Left=310
Top=15
Width=90
Caption="Рассчёт"
link(onClick,2159489:doEvent1,[])
}
Add(Edit,13883334,420,49)
{
Left=92
Top=15
Text="321"
}
Add(Label,13311803,189,133)
{
Left=15
Top=20
Width=72
Height=17
Caption="Диаметр, мм"
}
Add(For,7740520,343,49)
{
Start=3
End=100
link(onEvent,2317069:doCalc,[(389,55)(389,139)])
link(End,4115576:Text,[])
}
Add(MathParse,2317069,413,133)
{
MathStr="(sin ((360/%1)/2))*%2"
AngleMode=1
link(onResult,3039440:doOperation,[])
link(X1,12869071:Var2,[(419,121)(349,121)])
link(X2,4326351:Var2,[])
}
Add(GetDataEx,12869071,343,91)
{
link(Data,7740520:Position,[])
}
Add(StringTable,262099,623,133)
{
Left=15
Top=60
Width=465
Height=250
Columns=#16:Диаметр, мм.=100|12:Частей, шт. |10:Хорда, мм.|10:Округленно|
Grid=0
Point(onMouseUp)
link(onClick,12261816:doEvent1,[(667,139)(667,202)])
}
Add(FormatStr,13922804,546,133)
{
DataCount=4
Mask="%1;%2;%3;%4"
link(onFString,262099:doAdd,[])
link(Str1,4326351:Var3,[(552,103)])
link(Str2,12869071:Var3,[(559,96)])
link(Str3,3039440:Result,[(566,121)(494,121)(494,179)(461,179)])
link(Str4,4918351:Result,[(573,121)(593,121)(593,180)(510,180)])
}
Add(Math,3039440,455,133)
{
OpType=35
Op2=0.00001
link(onResult,4918351:doOperation,[])
}
Add(GetDataEx,4326351,420,98)
{
link(Data,13883334:Text,[])
}
Add(Hub,2159489,259,35)
{
InCount=2
OutCount=3
link(onEvent1,262099:doClear,[(605,41)(605,146)])
link(onEvent2,7740520:doFor,[(333,48)(333,55)])
}
Add(Math,4918351,504,133)
{
OpType=35
Op2=0.01
link(onResult,13922804:doString,[])
}
Add(Edit,4115576,350,-7)
{
Left=237
Top=15
Text="16"
}
Add(Label,3312127,189,84)
{
Left=155
Top=18
Width=77
Height=17
Caption="Расчёт от 3 до"
}
Add(GL_Main,12986311,329,238)
{
Color=16777215
TwoSide=0
AASamples=1
link(onInit,12198675:doInit,[])
link(onViewPort,3410847:doPerspective,[(382,251)(382,286)])
link(Handle,7534867:Var1,[])
}
Add(Timer,9506849,266,378)
{
Interval=10
Enable=1
AutoStop=1
link(onTimer,3607840:doWork3,[(326,384)])
}
Add(GL_GTools,771925,392,315)
{
Point(doClear)
Point(doPushMatrix)
Point(doPopMatrix)
}
Add(Hub,1049454,343,315)
{
OutCount=5
link(onEvent1,771925:doClear,[])
link(onEvent2,771925:doPushMatrix,[])
link(onEvent3,7484386:doEvent,[(375,335)(375,440)])
link(onEvent4,771925:doPopMatrix,[(384,342)(384,335)])
link(onEvent5,12986311:doFlip,[(369,349)(369,288)(319,288)(319,258)])
}
Add(Hub,16299401,196,238)
{
OutCount=4
link(onEvent1,12986311:doInit,[])
link(onEvent2,12986311:doViewPort,[])
link(onEvent4,2159489:doEvent2,[(238,265)(238,48)])
}
Add(GL_Perspective,3410847,392,280)
{
Fovy=30
}
Add(GL_Disk,5637833,644,455)
{
OutRadius=1.6
Stacks=1
Point(Slices)
Point(Stacks)
link(onDraw,6148131:doWork2,[])
link(Slices,2952427:Var2,[])
}
Add(GL_Color,13997617,595,455)
{
Color=12632256
link(onColor,5637833:doDraw,[])
}
Add(MultiStrPart,14001167,714,196)
{
Count=4
link(onSplit,8650820:doOperation,[])
link(Str,262099:Select,[(720,180)(636,180)])
}
Add(MainForm,8454304,147,238)
{
Width=763
Height=401
Caption="Хорда"
Position=1
link(onActivate,16299401:doEvent1,[])
}
Add(GL_Disk,8052256,483,448)
{
InRadius=1.6
OutRadius=1.6
Slices=50
Stacks=1
link(onDraw,8728187:doWork2,[])
}
Add(GL_Color,8472235,441,448)
{
Color=255
Alpha=0.5
link(onColor,8052256:doDraw,[])
}
Add(Label,7194114,917,196)
{
Left=20
Top=329
Width=20
Font=[MS Sans Serif,10,1,16711680,1]
Transparent=0
Caption=""
}
Add(FormatStr,10033650,875,196)
{
DataCount=3
Mask="Радиус=%3мм %1 Хорда=%2мм"
link(onFString,7194114:doText,[])
link(Str2,14001167:Part4,[(888,174)(753,174)(753,234)(741,234)])
link(Str3,8650820:Result,[(895,187)(867,187)(867,236)(776,236)])
}
Add(Convertor,13355228,826,196)
{
Mode=16
Word_1="часть"
Word_2="части"
Word_5="частей"
link(onResult,10033650:doString,[])
link(Data,1840627:Var3,[(832,187)(818,187)(818,257)])
}
Add(GL_GluTools,12198675,448,238)
{
DrawStyle=1
Orientation=0
Point(doDrawStyle)
}
Add(GetDataEx,1840627,721,252)
{
link(Data,14001167:Part2,[])
}
Add(Math,8650820,770,196)
{
OpType=3
Op2=2
link(onResult,13355228:doConvert,[])
link(Op1,14001167:Part1,[(776,187)(762,187)(762,242)(720,242)])
}
Add(ChildPanel,7534867,329,189)
{
}
BEGIN_SDK
Add(EditMulti,1983358,21,21)
{
VarCount=1
Width=83
Height=88
link(Var1,4591409:Handle,[(27,82)(55,82)])
}
Add(Panel,4591409,49,42)
{
Left=490
Top=60
Width=250
Height=250
Point(Handle)
}
END_SDK
Add(GL_PrimSizes,7310423,742,455)
{
Size=4
link(onSize,9607631:doColor,[])
}
Add(GL_Disk,5960140,826,455)
{
OutRadius=1.6
Stacks=1
Point(Slices)
Point(Stacks)
link(onDraw,10398903:doPointSize,[])
link(Slices,2952427:Var3,[(846,425)])
}
Add(GetDataEx,2952427,658,420)
{
link(Data,1840627:Var1,[(664,257)])
}
Add(GL_PrimSizes,10398903,868,448)
{
}
Add(GL_Color,9607631,784,455)
{
Color=0
link(onColor,5960140:doDraw,[])
}
Add(CheckBox,8844065,392,378)
{
Left=490
Top=20
Width=70
Checked=0
Caption="Диаметр"
}
Add(CheckBox,7194394,539,378)
{
Left=575
Top=20
Width=70
Checked=0
Caption="Связи"
}
Add(CheckBox,11268426,693,378)
{
Left=650
Top=20
Checked=0
Caption="Точки"
}
Add(IndexToChanel,7484386,392,434)
{
Point(Index)
link(onEvent1,8728187:doWork1,[(529,440)])
link(onEvent2,8472235:doColor,[(432,447)(432,454)])
link(Index,8844065:Checked,[])
}
Add(IndexToChanel,13582094,539,448)
{
Point(Index)
link(onEvent1,6148131:doWork1,[(583,454)(583,440)(683,440)])
link(onEvent2,13997617:doColor,[])
link(Index,7194394:Checked,[])
}
Add(IndexToChanel,13106668,693,455)
{
Point(Index)
link(onEvent2,7310423:doPointSize,[])
link(Index,11268426:Checked,[])
}
Add(HubEx,8728187,525,448)
{
link(onEvent,13582094:doEvent,[])
}
Add(HubEx,6148131,679,455)
{
link(onEvent,13106668:doEvent,[])
}
Add(Hub,12261816,679,196)
{
link(onEvent1,14001167:doSplit,[])
link(onEvent2,9506849:doTimer,[(704,209)(704,363)(256,363)(256,384)])
}
Add(Button,16630746,276,315)
{
Left=15
Top=40
Width=465
Caption="При нажатии на эту кнопку работает ,а при выборе из таблицы нет"
link(onClick,3607840:doWork2,[])
}
Add(HubEx,3607840,322,315)
{
link(onEvent,1049454:doEvent1,[])
}
Ответов: 8930
Рейтинг: 823
|
|||
tig-rrr, по времени не успевает
|
|||
карма: 19 |
|