nesco писал(а):
ты такое в схеме намутил, что там сам черт не разберется.
Add(MainForm,10809136,112,231)
{
Width=664
Height=495
Position=1
Point(onKeyDown)
link(onCreate,951339:doFor,[])
}
Add(MTStrTbl,5133893,336,364)
{
Width=648
Height=456
Align=5
Font=[MS Sans Serif,12,0,0,1]
WinStyle=4
Name="testTable"
Columns=#4:№=40|12:Название=200|7:1=60==2|7:2=60==2|7:3=60==2|7:4=60==2|7:5=60==2|7:6=60==2|7:7=60==2|7:8=60==2|7:9=60==2|8:10=60==2|0:|0:|
Grid=0
}
Add(MST_RowAction,2904434,336,245)
{
MSTControl="testTable"
}
Add(ChildPanelEx,12756869,336,420)
{
}
BEGIN_SDK
Add(EditMultiEx,14376481,21,21)
{
Width=1504
Height=1145
}
Add(Panel,5130657,504,105)
{
Left=35
Top=105
Visible=1
BevelInner=0
Point(doLeft)
Point(doTop)
Point(doWidth)
Point(doHeight)
Point(doVisible)
}
Add(MT_MultiData,13383753,455,112)
{
Count=4
Point(Data)
link(onData1,5130657:doLeft,[])
link(onData2,5130657:doTop,[])
link(onData3,5130657:doWidth,[])
link(onData4,5130657:doHeight,[])
link(Data,14215607:Value,[])
}
Add(MT_Memory,14215607,455,63)
{
link(onData,7516697:doWork1,[(494,69)(494,104)(445,104)])
}
Add(Edit,11196193,518,266)
{
Left=1155
Top=1175
Align=5
Color=8421631
Font=[MS Sans Serif,12,0,0,1]
Visible=1
WinStyle=1
Text=""
Point(doBringToFront)
Point(doSetFocus)
Point(doVisible)
Point(onKillFocus)
Point(Position)
Point(onKeyDown)
link(onChange,12486967:doWork,[])
link(onEnter,7803514:doWork1,[(571,279)])
link(onKillFocus,7803514:doWork2,[])
link(onKeyDown,7337739:doCase,[(562,293)(562,372)(53,372)(53,1021)])
}
Add(Hub,5035439,441,273)
{
OutCount=4
link(onEvent1,11196193:doText2,[])
link(onEvent2,11196193:doBringToFront,[])
link(onEvent3,11196193:doSetFocus,[])
link(onEvent4,11308528:doWork2,[(462,300)(462,349)])
}
Add(ChanelToIndex,11308528,469,336)
{
link(onIndex,11196193:doVisible,[(509,342)(509,300)])
}
Add(Hub,7068085,399,259)
{
OutCount=3
link(onEvent1,7516697:doWork2,[(425,265)(425,118)])
link(onEvent2,5685364:doWork2,[(434,272)(434,160)])
link(onEvent3,5035439:doEvent1,[])
}
Add(ChanelToIndex,5685364,455,147)
{
link(onIndex,5130657:doVisible,[(495,153)(495,146)])
}
Add(HubEx,7516697,441,112)
{
link(onEvent,13383753:doSeparateMT,[])
}
Add(Case,3462281,126,406)
{
@Hint=#3:Esc|
Value=Integer(27)
link(onTrue,7803514:doWork3,[(571,419)])
AddHint(-2,33,27,13,Value)
AddHint(-5,-17,33,13,@Hint)
}
Add(If_else,8008798,357,259)
{
Type=5
Op2=Integer(0)
link(onTrue,7068085:doEvent1,[])
link(Op1,10856897:getVar,[])
AddHint(5,-35,21,13,Op2)
}
Add(LineBreakEx,10856897,357,210)
{
Caption="col"
Type=2
}
Add(MST_UseEditCtrl,5561109,189,252)
{
MSTControl="parent.testTable"
Point(doStop)
Point(doSetCell)
link(onCellSize,14215607:doValue,[(229,258)(229,69)])
link(onEnterCell,5484721:doValue,[])
link(onEscCell,7922413:doEvent1,[(245,272)(245,342)])
}
Add(Memory,5484721,259,259)
{
Point(Data)
link(onData,15587215:doEvent1,[])
link(Data,5561109:Cell,[(265,247)(236,247)(236,294)(216,294)])
}
Add(Memory,10271330,119,210)
{
}
Add(Hub,7922413,259,336)
{
link(onEvent1,11308528:doWork1,[])
link(onEvent2,5685364:doWork1,[(343,349)(343,153)])
}
Add(Hub,3117519,84,210)
{
link(onEvent1,1993221:doWork2,[])
link(onEvent2,5561109:doSetData,[(108,223)(108,258)])
}
Add(HubEx,1993221,105,210)
{
link(onEvent,10271330:doValue,[])
}
Add(Hub,15587215,301,259)
{
link(onEvent1,8008798:doCompare,[])
link(onEvent2,1993221:doWork1,[(325,272)(325,196)(109,196)])
}
Add(LineBreakEx,7209891,196,322)
{
Caption="col"
Type=3
link(_Data,5561109:SubItem,[])
}
Add(LineBreakEx,15433687,203,308)
{
Caption="row"
Type=3
link(_Data,5561109:Index,[])
}
Add(LineBreakEx,2852193,259,308)
{
Caption="old"
Type=3
link(_Data,5484721:Value,[])
}
Add(LineBreakEx,6778748,119,301)
{
Caption="new"
Type=3
link(_Data,10271330:Value,[])
}
Add(LineBreakEx,12486967,581,266)
{
Caption="new"
}
Add(LineBreakEx,2141901,35,210)
{
Caption="new"
Type=1
link(OnEvent,3117519:doEvent1,[])
}
Add(LineBreakEx,14837277,581,280)
{
Caption="stop"
}
Add(LineBreakEx,16428612,588,595)
{
Caption="row"
Type=2
}
Add(Math,6128596,280,616)
{
Op2=1
ResultType=0
link(onResult,7087823:doCompare,[])
link(Op1,2203475:getVar,[])
AddHint(6,-18,30,13,Op2)
}
Add(Math,16136747,280,784)
{
OpType=1
Op2=1
ResultType=0
link(onResult,1705546:doCompare,[])
link(Op1,15567663:getVar,[])
AddHint(8,-16,30,13,Op2)
}
Add(LineBreakEx,8411818,126,259)
{
Caption="stop"
Type=1
link(OnEvent,5561109:doStop,[])
}
Add(LineBreakEx,15968837,637,525)
{
Caption="set"
}
Add(LineBreakEx,10462352,126,280)
{
Caption="set"
Type=1
link(OnEvent,5561109:doSetCell,[(184,286)(184,272)])
}
Add(If_else,7087823,322,616)
{
link(onTrue,5862235:doOperation,[(376,622)(376,524)])
link(onFalse,7780230:doWork2,[])
link(Op2,11255982:Var1,[(335,600)])
}
Add(Math,5862235,399,518)
{
Op2=1
ResultType=0
link(onResult,5157168:doCompare,[])
link(Op1,12243952:getVar,[])
AddHint(7,-18,30,13,Op2)
}
Add(MT_Add,14809660,588,623)
{
InputMT=1
link(onAdd,8952771:doWork,[])
link(Data,16428612:getVar,[])
}
Add(LineBreakEx,2203475,280,581)
{
Caption="col"
Type=2
}
Add(MT_Add,3357127,546,525)
{
Data=Integer(1)
link(onAdd,15968837:doWork,[])
AddHint(2,-25,21,13,Data)
}
Add(LineBreakEx,12243952,399,483)
{
Caption="row"
Type=2
}
Add(If_else,5157168,455,518)
{
link(onTrue,6840563:doData,[])
link(onFalse,15082148:doWork2,[])
link(Op1,3977373:Count,[])
}
Add(MST_ArrayRows,3977373,448,434)
{
MSTControl="parent.testTable"
}
Add(DoData,6840563,497,518)
{
Data=Integer(0)
link(onEventData,15082148:doWork1,[(536,524)])
AddHint(3,-24,21,13,Data)
}
Add(HubEx,15082148,532,525)
{
link(onEvent,3357127:doAdd,[])
}
Add(LineBreakEx,15567663,280,749)
{
Caption="col"
Type=2
}
Add(If_else,1705546,329,784)
{
Op2=Integer(0)
link(onTrue,12186795:doOperation,[(369,790)(369,734)])
link(onFalse,7780230:doWork3,[(578,797)])
AddHint(2,-38,21,13,Op2)
}
Add(HubEx,7780230,574,623)
{
link(onEvent,14809660:doAdd,[])
}
Add(Math,12186795,385,728)
{
OpType=1
Op2=1
ResultType=0
link(onResult,14793019:doCompare,[])
link(Op1,2485019:getVar,[])
AddHint(7,-18,30,13,Op2)
}
Add(LineBreakEx,2485019,385,679)
{
Caption="row"
Type=2
}
Add(MT_Add,13700832,497,763)
{
link(onAdd,8248390:doWork,[])
link(Data,12189069:Var2,[])
}
Add(MST_ArrayCols,12019485,469,560)
{
MSTControl="parent.testTable"
}
Add(LineBreakEx,8952771,637,623)
{
Caption="set"
}
Add(LineBreakEx,8248390,637,763)
{
Caption="set"
}
Add(If_else,14793019,434,728)
{
Op2=Integer(-1)
link(onTrue,8551369:doAdd,[])
link(onFalse,13700832:doAdd,[(478,741)(478,769)])
AddHint(-1,-31,24,13,Op2)
}
Add(MT_AddData,8551369,532,728)
{
link(onAdd,7100305:doWork,[])
link(Data1,3977373:EndIdx,[(538,478)(468,478)])
link(Data2,12189069:Var3,[(545,691)])
}
Add(LineBreakEx,7100305,637,728)
{
Caption="set"
}
Add(GetDataEx,12189069,497,686)
{
link(Data,4670745:reCalc,[])
}
Add(Case,7337739,119,1015)
{
@Hint=#4:Down|
Value=Integer(40)
link(onNextCase,12648963:doCase,[(170,1021)(170,997)(107,997)(107,916)])
link(onTrue,5103279:doOperation,[])
AddHint(-4,31,27,13,Value)
AddHint(-10,-15,43,13,@Hint)
}
Add(LineBreakEx,3701152,637,1029)
{
Caption="set"
}
Add(Math,5103279,210,1022)
{
Op2=1
ResultType=0
link(onResult,16059926:doCompare,[])
link(Op1,13902383:getVar,[])
AddHint(7,-18,30,13,Op2)
}
Add(LineBreakEx,13902383,210,987)
{
Caption="row"
Type=2
}
Add(MT_Add,7061316,406,1029)
{
link(onAdd,2155515:doWork2,[])
link(Data,13867667:getVar,[])
}
Add(LineBreakEx,13867667,406,987)
{
Caption="col"
Type=2
}
Add(Math,4894153,210,917)
{
OpType=1
Op2=1
ResultType=0
link(onResult,5064923:doCompare,[])
link(Op1,6938679:getVar,[])
AddHint(7,-18,30,13,Op2)
}
Add(LineBreakEx,6938679,210,882)
{
Caption="row"
Type=2
}
Add(Case,12648963,119,910)
{
@Hint=#2:Up|
Value=Integer(38)
link(onNextCase,16072013:doCase,[(191,916)(191,871)(105,871)(105,783)])
link(onTrue,4894153:doOperation,[])
AddHint(0,32,27,13,Value)
AddHint(1,-18,29,13,@Hint)
}
Add(If_else,16059926,294,1022)
{
link(onTrue,16559844:doData,[(334,1028)(334,1000)])
link(onFalse,2486583:doWork2,[])
link(Op2,5796118:Var1,[(307,894)])
}
Add(MST_ArrayRows,11080102,392,833)
{
MSTControl="parent.testTable"
}
Add(If_else,5064923,266,917)
{
Op2=Integer(-1)
link(onTrue,9086936:doAdd,[])
link(onFalse,4376003:doWork1,[(389,930)])
AddHint(-1,-31,24,13,Op2)
}
Add(MT_AddData,9086936,406,917)
{
link(onAdd,2155515:doWork1,[(452,923)])
link(Data1,5796118:Var2,[])
link(Data2,2935184:getVar,[])
}
Add(LineBreakEx,2935184,413,875)
{
Caption="col"
Type=2
}
Add(HubEx,2155515,448,1029)
{
link(onEvent,3701152:doWork,[])
}
Add(HubEx,2486583,385,1029)
{
link(onEvent,7061316:doAdd,[])
}
Add(GetDataEx,5796118,406,889)
{
link(Data,11080102:EndIdx,[])
}
Add(DoData,16559844,343,994)
{
Data=Integer(0)
link(onEventData,4376003:doWork2,[])
AddHint(4,-21,21,13,Data)
}
Add(LineBreakEx,12083572,525,322)
{
Caption="pos"
Type=3
link(_Data,11196193:Position,[])
}
Add(LineBreakEx,14205621,518,336)
{
Caption="txt"
Type=3
link(_Data,11196193:Text,[])
}
Add(LineBreakEx,3403585,203,742)
{
Caption="pos"
Type=2
}
Add(Case,16072013,119,777)
{
@Hint=#4:Left|
Value=Integer(37)
link(onNextCase,15224258:doCase,[(184,783)(184,711)(104,711)(104,615)])
link(onTrue,10633261:doCompare,[])
AddHint(-6,30,27,13,Value)
AddHint(-8,-19,33,13,@Hint)
}
Add(If_else,10633261,203,784)
{
Op2=Integer(0)
link(onTrue,16136747:doOperation,[])
link(Op1,3403585:getVar,[])
AddHint(8,-23,21,13,Op2)
}
Add(Case,15224258,119,609)
{
@Hint=#5:Right|
Value=Integer(39)
link(onNextCase,3462281:doCase,[(169,615)(169,524)(102,524)(102,412)])
link(onTrue,3739783:doLength,[])
AddHint(-6,33,27,13,Value)
AddHint(-15,-18,40,13,@Hint)
}
Add(LineBreakEx,16145838,238,581)
{
Caption="pos"
Type=2
}
Add(If_else,16628064,238,616)
{
link(onTrue,6128596:doOperation,[])
link(Op1,16145838:getVar,[])
}
Add(LineBreakEx,12718142,196,581)
{
Caption="txt"
Type=2
}
Add(Length,3739783,196,616)
{
link(onLength,16628064:doCompare,[])
link(Str,12718142:getVar,[])
}
Add(MathParse,4670745,490,637)
{
DataCount=1
MathStr="%1 - 1"
Point(reCalc)
link(X1,11255982:Var2,[])
}
Add(GetDataEx,11255982,490,595)
{
link(Data,12019485:EndIdxCol,[])
}
Add(HubEx,4376003,385,994)
{
Angle=1
link(onEvent,2486583:doWork1,[])
}
Add(HubEx,7803514,567,280)
{
link(onEvent,14837277:doWork,[])
}
END_SDK
Add(StyleXP,12602425,70,231)
{
}
Add(For,951339,161,245)
{
Start=1
End=100
link(onEvent,12653516:doEvent1,[])
}
Add(Hub,12653516,203,245)
{
OutCount=3
link(onEvent1,16325440:doFor,[(229,251)(229,111)])
link(onEvent2,15109729:doString,[])
link(onEvent3,2403286:doClear,[(238,265)(238,153)])
}
Add(Convertor,931224,336,105)
{
Mode=6
link(onResult,2403286:doStrCatDlm,[(376,111)(376,146)])
}
Add(Random,2204022,294,105)
{
Min=1000
Max=3000
link(onRandom,931224:doConvert,[])
}
Add(For,16325440,245,105)
{
End=9
link(onEvent,2204022:doRandom,[])
}
Add(StrCatDelim,2403286,392,140)
{
Delimiter=";"
Point(doClear)
link(Str1,6556000:Var1,[(398,128)(386,128)(386,184)])
}
Add(MT_String,10205746,294,245)
{
link(onResult,2904434:doRowAction,[])
}
Add(FormatStr,15109729,252,252)
{
Mask="%1;Название %1%2"
link(onFString,10205746:doMT,[])
link(Str2,6556000:Var2,[(265,220)(398,220)])
}
Add(GetDataEx,6556000,392,179)
{
link(Data,2403286:Result,[])
}
Add(MainForm,10809136,210,105)
{
Width=776
Height=572
Position=1
Point(onKeyDown)
link(onCreate,10041622:doEnum,[])
}
Add(MTStrTbl,5133893,399,105)
{
Top=60
Width=762
Height=483
Font=[MS Sans Serif,12,0,0,1]
WinStyle=4
Name="testTable"
Columns=#4:№=40|9:Фильм=200|9:Год=60==2|11:Жанр=200==2|12:Описание=300|0:|
Grid=0
}
Add(StrList,15034837,252,63)
{
Strings=#49:1;Звездные войны;1980;фантастика;Фильм о войнах )|32:2;1+1;2003;комедия;Фильм о двух |39:3;Убить Билла;1990;боевик;Убивают Билла|53:4;Крепкий орешик 2;1999;боевик;Встретил жену с работы|52:5;Куб;1993;фантастика;Для любителей трехмерных фигур|48:6;Аватар;2004;фантастика;Управляют синими телами|
}
Add(MT_String,922736,315,105)
{
link(onResult,2904434:doRowAction,[])
}
Add(ArrayEnum,10041622,266,119)
{
link(onItem,922736:doMTString,[])
link(Array,15034837:Array,[])
}
Add(MST_RowAction,2904434,357,105)
{
MSTControl="testTable"
}
Add(StyleXP,12602425,168,105)
{
}
Add(MST_UseEditCtrl,5561109,280,336)
{
MSTControl="testTable"
Point(doSetCell)
Point(doStop)
link(onCellSize,2625445:doEvent1,[(316,342)(316,286)])
link(onEnterCell,13383753:doSeparateMT,[])
link(onEscCell,848161:doReset,[(316,356)(316,405)])
}
Add(MST_FindText,674873,161,343)
{
SelectFind=1
MSTControl="testTable"
link(onFindText,6923005:doEvent1,[])
link(FindText,8759677:Text,[])
}
Add(Edit,8759677,161,294)
{
Left=15
Top=20
Width=120
Height=25
Font=[MS Sans Serif,12,0,0,1]
Text="1999"
}
Add(Button,3196375,119,343)
{
Left=150
Top=20
Height=25
Caption="Найти"
link(onClick,674873:doFindText,[])
}
Add(MT_MultiData,13383753,350,343)
{
Count=4
Point(Data)
link(onData1,6094652:doLeft,[])
link(onData2,6094652:doTop,[])
link(onData3,6094652:doWidth,[])
link(onData4,6094652:doHeight,[])
link(Data,14215607:Value,[])
}
Add(MT_Memory,14215607,350,287)
{
link(onData,3270517:doCalc,[])
}
Add(Label,6094652,504,336)
{
Left=580
Top=430
Color=255
Font=[MS Sans Serif,12,1,255,1]
Visible=1
Caption=""
AutoSize=1
Alignment=2
Point(doLeft)
Point(doTop)
Point(doWidth)
Point(doHeight)
Point(doVisible)
Point(Handle)
}
Add(Hub,6923005,203,343)
{
link(onEvent1,5561109:doSetCell,[])
link(onEvent2,10930565:doTimer,[])
}
Add(Timer,10930565,231,350)
{
Interval=100
Enable=1
AutoStop=20
Point(onStop)
link(onTimer,848161:doNext,[(271,356)(271,398)])
link(onStop,5561109:doStop,[(275,363)(275,356)])
}
Add(CounterEx,848161,350,392)
{
Max=1
Point(doReset)
link(onNext,6094652:doVisible,[(452,398)(452,377)])
}
Add(RGN_SetToWindow,16359307,511,434)
{
link(Handle,6094652:Handle,[])
}
Add(RGN_Rect,10887976,385,434)
{
link(onCreateRect,13710157:doCreateRect,[])
link(Point2,3270517:Result,[])
}
Add(RGN_Rect,13710157,427,434)
{
Point1=196611
link(onCreateRect,11305299:doCombine,[])
link(Point2,3932225:Result,[])
}
Add(RGN_Combine,11305299,469,434)
{
Mode=3
link(onCombine,16359307:doSetRegion,[])
link(Region1,10887976:Result,[(475,422)(464,422)(464,474)(391,474)])
}
Add(MathParse,3932225,434,287)
{
DataCount=1
MathStr="%1 - 65536 * 3 - 3"
link(onResult,6282430:doData,[(553,293)(553,490)(332,490)(332,440)])
}
Add(MathParse,3270517,392,287)
{
MathStr="%2 * 65536 + %1"
link(onResult,3932225:doCalc,[])
link(X1,15008401:Value1,[])
link(X2,15008401:Value2,[])
}
Add(DoData,6282430,343,434)
{
link(onEventData,10887976:doCreateRect,[])
}
Add(Hub,2625445,322,280)
{
link(onEvent1,15008401:doValue,[(346,286)(346,223)])
link(onEvent2,14215607:doValue,[])
}
Add(MT_MultiMem,15008401,392,217)
{
From=2
}