1nd1g0 писал(а): LastLeader, коллега Леонид уже дал Вам готовую схему, в которой осталось только наполнить по-своему динамические панели. Разбираюсь по немного, по мере возможности. Add(MainForm,2953706,21,105) { Width=302 Height=150 } Add(ChildPanel,4003380,253,123) { } BEGIN_SDK Add(EditMulti,13978090,21,21) { WorkCount=1 DataCount=5 Width=510 Height=256 link(doWork1,1902086:doEvent1,[(45,27)(45,41)]) } Add(Panel,16201092,483,42) { Left=130 Top=40 Width=77 Height=29 Color=15793151 WinStyle=1 BevelInner=0 } Add(RadioButtonRush,6647412,281,134) { Left=30 Top=5 Width=20 Color=15793151 Caption="" link(onSelect,12873469:doEvent1,[(316,140)(316,194)]) } Add(RadioButtonRush,10632960,401,135) { Left=50 Top=5 Width=20 Color=15793151 Caption="" link(onSelect,6014431:doEvent1,[(441,141)(441,201)]) } Add(RadioButtonRush,9264333,127,134) { Left=10 Top=5 Width=20 Color=16777215 Caption="" link(onSelect,12116437:doEvent1,[(171,140)(171,174)]) } Add(Switch,13159589,217,133) { DataOn=Integer(1) DataOff=Integer(0) link(onSwitch,7859555:doWork3,[(261,139)(261,151)(115,151)]) } Add(Hub,12116437,182,168) { OutCount=4 link(onEvent1,13159589:doSwitch,[(207,174)(207,139)]) link(onEvent2,9739872:doWork2,[]) link(onEvent3,5064927:doWork2,[]) link(onEvent4,13361809:doWrite,[(208,195)(208,135)(72,135)(72,76)]) } Add(Switch,5676347,345,134) { DataOn=Integer(1) DataOff=Integer(0) link(onSwitch,14259763:doWork3,[(389,140)(389,133)]) } Add(Hub,12873469,319,188) { OutCount=4 link(onEvent1,5676347:doSwitch,[(335,194)(335,140)]) link(onEvent2,5064927:doWork3,[(361,201)]) link(onEvent3,4471420:doWork1,[(347,208)]) link(onEvent4,6782581:doWrite,[(345,215)(345,145)(127,145)(127,76)]) } Add(Switch,13394845,474,137) { DataOn=Integer(1) DataOff=Integer(0) link(onSwitch,5162947:doWork3,[(514,143)(514,115)]) } Add(Hub,6014431,450,195) { OutCount=4 link(onEvent1,13394845:doSwitch,[(469,201)(469,143)]) link(onEvent2,9739872:doWork1,[(481,208)(481,246)(276,246)]) link(onEvent3,4471420:doWork2,[(476,215)(476,223)]) link(onEvent4,5441988:doWrite,[(476,222)(476,149)(179,149)(179,76)]) } Add(HubEx,5064927,357,182) { link(onEvent,13394845:doReset,[(472,188)(472,150)]) } Add(HubEx,9739872,270,175) { Angle=3 link(onEvent,5676347:doReset,[(274,147)]) } Add(HubEx,4471420,343,217) { Angle=2 link(onEvent,13159589:doReset,[(210,223)(210,146)]) } Add(MatrixRW,13361809,84,63) { Value=Integer(0) link(onRead,7859555:doWork1,[(128,69)(128,103)(115,103)]) link(Matrix,16580784:Var2,[(90,51)(41,51)]) link(Value,9264333:Selected,[(97,51)(115,51)(115,178)(133,178)]) link(X,13978090:Data3,[(104,42)(41,42)]) link(Y,6182879:Var2,[]) } Add(MatrixRW,6782581,139,63) { link(onRead,14259763:doWork1,[(269,69)]) link(Matrix,15440706:Var2,[(145,51)(96,51)]) link(Value,6647412:Selected,[(152,51)(220,51)(220,178)(287,178)]) link(X,13978090:Data4,[(159,42)(48,42)]) link(Y,7187908:Var2,[]) } Add(MatrixRW,5441988,191,63) { link(onRead,5162947:doWork1,[(393,69)]) link(Matrix,15440706:Var3,[(197,35)]) link(Value,10632960:Selected,[(204,51)(306,51)(306,179)(407,179)]) link(X,13978090:Data5,[(211,42)(55,42)]) link(Y,7187908:Var3,[(218,42)]) } Add(GetDataEx,16580784,35,30) { Angle=3 link(Data,13978090:Data1,[(27,35)]) } Add(GetDataEx,15440706,90,30) { Angle=3 link(Data,16580784:Var3,[]) } Add(GetDataEx,6182879,105,37) { Angle=3 link(Data,13978090:Data2,[(34,42)]) } Add(GetDataEx,7187908,160,37) { Angle=3 link(Data,6182879:Var3,[]) } Add(HubEx,7859555,111,134) { link(onEvent,9264333:doSelect,[]) } Add(HubEx,14259763,265,127) { Angle=1 link(onEvent,6647412:doSelect,[(269,140)]) } Add(HubEx,5162947,389,109) { Angle=1 link(onEvent,10632960:doSelect,[(393,141)]) } Add(Hub,1902086,70,35) { OutCount=3 link(onEvent1,13361809:doRead,[(81,41)(81,69)]) link(onEvent2,6782581:doRead,[(108,48)(108,69)]) link(onEvent3,5441988:doRead,[(144,55)(144,69)]) } END_SDK Add(ChildPanel,16105893,215,92) { } BEGIN_SDK Add(EditMulti,470422,21,21) { WorkCount=1 DataCount=5 Width=510 Height=256 link(doWork1,105923:doEvent1,[(45,27)(45,41)]) } Add(Panel,6898874,483,42) { Left=200 Top=40 Width=77 Height=29 Color=15793151 WinStyle=1 BevelInner=0 } Add(RadioButtonRush,11039761,281,134) { Left=30 Top=5 Width=20 Color=15793151 Caption="" link(onSelect,148978:doEvent1,[(316,140)(316,194)]) } Add(RadioButtonRush,7117560,401,135) { Left=50 Top=5 Width=20 Color=15793151 Caption="" link(onSelect,5844410:doEvent1,[(441,141)(441,201)]) } Add(RadioButtonRush,9261181,127,134) { Left=10 Top=5 Width=20 Color=16777215 Caption="" link(onSelect,13945843:doEvent1,[(171,140)(171,174)]) } Add(Switch,1747755,217,133) { DataOn=Integer(1) DataOff=Integer(0) link(onSwitch,13478829:doWork3,[(261,139)(261,151)(115,151)]) } Add(Hub,13945843,182,168) { OutCount=4 link(onEvent1,1747755:doSwitch,[(207,174)(207,139)]) link(onEvent2,11082929:doWork2,[]) link(onEvent3,10410274:doWork2,[]) link(onEvent4,3893696:doWrite,[(208,195)(208,135)(72,135)(72,76)]) } Add(Switch,9160914,345,134) { DataOn=Integer(1) DataOff=Integer(0) link(onSwitch,2649918:doWork3,[(389,140)(389,133)]) } Add(Hub,148978,319,188) { OutCount=4 link(onEvent1,9160914:doSwitch,[(335,194)(335,140)]) link(onEvent2,10410274:doWork3,[(361,201)]) link(onEvent3,5116685:doWork1,[(347,208)]) link(onEvent4,1199539:doWrite,[(345,215)(345,145)(127,145)(127,76)]) } Add(Switch,7964514,474,137) { DataOn=Integer(1) DataOff=Integer(0) link(onSwitch,3677449:doWork3,[(514,143)(514,115)]) } Add(Hub,5844410,450,195) { OutCount=4 link(onEvent1,7964514:doSwitch,[(469,201)(469,143)]) link(onEvent2,11082929:doWork1,[(481,208)(481,246)(276,246)]) link(onEvent3,5116685:doWork2,[(476,215)(476,223)]) link(onEvent4,15568310:doWrite,[(476,222)(476,149)(179,149)(179,76)]) } Add(HubEx,10410274,357,182) { link(onEvent,7964514:doReset,[(472,188)(472,150)]) } Add(HubEx,11082929,270,175) { Angle=3 link(onEvent,9160914:doReset,[(274,147)]) } Add(HubEx,5116685,343,217) { Angle=2 link(onEvent,1747755:doReset,[(210,223)(210,146)]) } Add(MatrixRW,3893696,84,63) { Value=Integer(0) link(onRead,13478829:doWork1,[(128,69)(128,103)(115,103)]) link(Matrix,16046871:Var2,[(90,51)(41,51)]) link(Value,9261181:Selected,[(97,51)(115,51)(115,178)(133,178)]) link(X,470422:Data3,[(104,42)(41,42)]) link(Y,1100177:Var2,[]) } Add(MatrixRW,1199539,139,63) { link(onRead,2649918:doWork1,[(269,69)]) link(Matrix,5501091:Var2,[(145,51)(96,51)]) link(Value,11039761:Selected,[(152,51)(220,51)(220,178)(287,178)]) link(X,470422:Data4,[(159,42)(48,42)]) link(Y,1505341:Var2,[]) } Add(MatrixRW,15568310,191,63) { link(onRead,3677449:doWork1,[(393,69)]) link(Matrix,5501091:Var3,[(197,35)]) link(Value,7117560:Selected,[(204,51)(306,51)(306,179)(407,179)]) link(X,470422:Data5,[(211,42)(55,42)]) link(Y,1505341:Var3,[(218,42)]) } Add(GetDataEx,16046871,35,30) { Angle=3 link(Data,470422:Data1,[(27,35)]) } Add(GetDataEx,5501091,90,30) { Angle=3 link(Data,16046871:Var3,[]) } Add(GetDataEx,1100177,105,37) { Angle=3 link(Data,470422:Data2,[(34,42)]) } Add(GetDataEx,1505341,160,37) { Angle=3 link(Data,1100177:Var3,[]) } Add(HubEx,13478829,111,134) { link(onEvent,9261181:doSelect,[]) } Add(HubEx,2649918,265,127) { Angle=1 link(onEvent,11039761:doSelect,[(269,140)]) } Add(HubEx,3677449,389,109) { Angle=1 link(onEvent,7117560:doSelect,[(393,141)]) } Add(Hub,105923,70,35) { OutCount=3 link(onEvent1,3893696:doRead,[(81,41)(81,69)]) link(onEvent2,1199539:doRead,[(108,48)(108,69)]) link(onEvent3,15568310:doRead,[(144,55)(144,69)]) } END_SDK Add(ChildPanel,13220922,175,91) { } BEGIN_SDK Add(EditMulti,1711619,21,21) { WorkCount=1 DataCount=5 Width=510 Height=256 link(doWork1,12514666:doEvent1,[(45,27)(45,41)]) } Add(Panel,4529001,483,42) { Left=130 Top=68 Width=77 Height=29 Color=65280 WinStyle=1 BevelInner=0 } Add(RadioButtonRush,12557389,281,134) { Left=30 Top=5 Width=20 Color=65280 Caption="" link(onSelect,2993378:doEvent1,[(316,140)(316,194)]) } Add(RadioButtonRush,10450484,401,135) { Left=50 Top=5 Width=20 Color=65280 Caption="" link(onSelect,3798221:doEvent1,[(441,141)(441,201)]) } Add(RadioButtonRush,1520377,127,134) { Left=10 Top=5 Width=20 Color=65280 Caption="" link(onSelect,9620921:doEvent1,[(171,140)(171,174)]) } Add(Switch,9919273,217,133) { DataOn=Integer(1) DataOff=Integer(0) link(onSwitch,2496494:doWork3,[(261,139)(261,151)(115,151)]) } Add(Hub,9620921,182,168) { OutCount=4 link(onEvent1,9919273:doSwitch,[(207,174)(207,139)]) link(onEvent2,12234297:doWork2,[]) link(onEvent3,6614164:doWork2,[]) link(onEvent4,1888166:doWrite,[(208,195)(208,135)(72,135)(72,76)]) } Add(Switch,7989951,345,134) { DataOn=Integer(1) DataOff=Integer(0) link(onSwitch,6007379:doWork3,[(389,140)(389,133)]) } Add(Hub,2993378,319,188) { OutCount=4 link(onEvent1,7989951:doSwitch,[(335,194)(335,140)]) link(onEvent2,6614164:doWork3,[(361,201)]) link(onEvent3,990277:doWork1,[(347,208)]) link(onEvent4,5087806:doWrite,[(345,215)(345,145)(127,145)(127,76)]) } Add(Switch,490659,474,137) { DataOn=Integer(1) DataOff=Integer(0) link(onSwitch,7674241:doWork3,[(514,143)(514,115)]) } Add(Hub,3798221,450,195) { OutCount=4 link(onEvent1,490659:doSwitch,[(469,201)(469,143)]) link(onEvent2,12234297:doWork1,[(481,208)(481,246)(276,246)]) link(onEvent3,990277:doWork2,[(476,215)(476,223)]) link(onEvent4,10495930:doWrite,[(476,222)(476,149)(179,149)(179,76)]) } Add(HubEx,6614164,357,182) { link(onEvent,490659:doReset,[(472,188)(472,150)]) } Add(HubEx,12234297,270,175) { Angle=3 link(onEvent,7989951:doReset,[(274,147)]) } Add(HubEx,990277,343,217) { Angle=2 link(onEvent,9919273:doReset,[(210,223)(210,146)]) } Add(MatrixRW,1888166,84,63) { Value=Integer(0) link(onRead,2496494:doWork1,[(128,69)(128,103)(115,103)]) link(Matrix,1629626:Var2,[(90,51)(41,51)]) link(Value,1520377:Selected,[(97,51)(115,51)(115,178)(133,178)]) link(X,1711619:Data3,[(104,42)(41,42)]) link(Y,845705:Var2,[]) } Add(MatrixRW,5087806,139,63) { link(onRead,6007379:doWork1,[(269,69)]) link(Matrix,1392798:Var2,[(145,51)(96,51)]) link(Value,12557389:Selected,[(152,51)(220,51)(220,178)(287,178)]) link(X,1711619:Data4,[(159,42)(48,42)]) link(Y,13603937:Var2,[]) } Add(MatrixRW,10495930,191,63) { link(onRead,7674241:doWork1,[(393,69)]) link(Matrix,1392798:Var3,[(197,35)]) link(Value,10450484:Selected,[(204,51)(306,51)(306,179)(407,179)]) link(X,1711619:Data5,[(211,42)(55,42)]) link(Y,13603937:Var3,[(218,42)]) } Add(GetDataEx,1629626,35,30) { Angle=3 link(Data,1711619:Data1,[(27,35)]) } Add(GetDataEx,1392798,90,30) { Angle=3 link(Data,1629626:Var3,[]) } Add(GetDataEx,845705,105,37) { Angle=3 link(Data,1711619:Data2,[(34,42)]) } Add(GetDataEx,13603937,160,37) { Angle=3 link(Data,845705:Var3,[]) } Add(HubEx,2496494,111,134) { link(onEvent,1520377:doSelect,[]) } Add(HubEx,6007379,265,127) { Angle=1 link(onEvent,12557389:doSelect,[(269,140)]) } Add(HubEx,7674241,389,109) { Angle=1 link(onEvent,10450484:doSelect,[(393,141)]) } Add(Hub,12514666,70,35) { OutCount=3 link(onEvent1,1888166:doRead,[(81,41)(81,69)]) link(onEvent2,5087806:doRead,[(108,48)(108,69)]) link(onEvent3,10495930:doRead,[(144,55)(144,69)]) } END_SDK Add(ChildPanel,508173,241,94) { } BEGIN_SDK Add(EditMulti,12848722,21,21) { WorkCount=1 DataCount=5 Width=510 Height=256 link(doWork1,4564892:doEvent1,[(45,27)(45,41)]) } Add(Panel,1481348,483,42) { Left=200 Top=68 Width=77 Height=29 Color=65280 WinStyle=1 BevelInner=0 } Add(RadioButtonRush,13917089,281,134) { Left=30 Top=5 Width=20 Color=65280 Caption="" link(onSelect,5531884:doEvent1,[(316,140)(316,194)]) } Add(RadioButtonRush,7390697,401,135) { Left=50 Top=5 Width=20 Color=65280 Caption="" link(onSelect,5072241:doEvent1,[(441,141)(441,201)]) } Add(RadioButtonRush,9560276,127,134) { Left=10 Top=5 Width=20 Color=65280 Caption="" link(onSelect,13280691:doEvent1,[(171,140)(171,174)]) } Add(Switch,9870590,217,133) { DataOn=Integer(1) DataOff=Integer(0) link(onSwitch,4906038:doWork3,[(261,139)(261,151)(115,151)]) } Add(Hub,13280691,182,168) { OutCount=4 link(onEvent1,9870590:doSwitch,[(207,174)(207,139)]) link(onEvent2,2529495:doWork2,[]) link(onEvent3,1618135:doWork2,[]) link(onEvent4,8626871:doWrite,[(208,195)(208,135)(72,135)(72,76)]) } Add(Switch,14560433,345,134) { DataOn=Integer(1) DataOff=Integer(0) link(onSwitch,2775692:doWork3,[(389,140)(389,133)]) } Add(Hub,5531884,319,188) { OutCount=4 link(onEvent1,14560433:doSwitch,[(335,194)(335,140)]) link(onEvent2,1618135:doWork3,[(361,201)]) link(onEvent3,3496939:doWork1,[(347,208)]) link(onEvent4,13691301:doWrite,[(345,215)(345,145)(127,145)(127,76)]) } Add(Switch,3253351,474,137) { DataOn=Integer(1) DataOff=Integer(0) link(onSwitch,4460718:doWork3,[(514,143)(514,115)]) } Add(Hub,5072241,450,195) { OutCount=4 link(onEvent1,3253351:doSwitch,[(469,201)(469,143)]) link(onEvent2,2529495:doWork1,[(481,208)(481,246)(276,246)]) link(onEvent3,3496939:doWork2,[(476,215)(476,223)]) link(onEvent4,14587151:doWrite,[(476,222)(476,149)(179,149)(179,76)]) } Add(HubEx,1618135,357,182) { link(onEvent,3253351:doReset,[(472,188)(472,150)]) } Add(HubEx,2529495,270,175) { Angle=3 link(onEvent,14560433:doReset,[(274,147)]) } Add(HubEx,3496939,343,217) { Angle=2 link(onEvent,9870590:doReset,[(210,223)(210,146)]) } Add(MatrixRW,8626871,84,63) { Value=Integer(0) link(onRead,4906038:doWork1,[(128,69)(128,103)(115,103)]) link(Matrix,8415735:Var2,[(90,51)(41,51)]) link(Value,9560276:Selected,[(97,51)(115,51)(115,178)(133,178)]) link(X,12848722:Data3,[(104,42)(41,42)]) link(Y,6420393:Var2,[]) } Add(MatrixRW,13691301,139,63) { link(onRead,2775692:doWork1,[(269,69)]) link(Matrix,16141729:Var2,[(145,51)(96,51)]) link(Value,13917089:Selected,[(152,51)(220,51)(220,178)(287,178)]) link(X,12848722:Data4,[(159,42)(48,42)]) link(Y,7090258:Var2,[]) } Add(MatrixRW,14587151,191,63) { link(onRead,4460718:doWork1,[(393,69)]) link(Matrix,16141729:Var3,[(197,35)]) link(Value,7390697:Selected,[(204,51)(306,51)(306,179)(407,179)]) link(X,12848722:Data5,[(211,42)(55,42)]) link(Y,7090258:Var3,[(218,42)]) } Add(GetDataEx,8415735,35,30) { Angle=3 link(Data,12848722:Data1,[(27,35)]) } Add(GetDataEx,16141729,90,30) { Angle=3 link(Data,8415735:Var3,[]) } Add(GetDataEx,6420393,105,37) { Angle=3 link(Data,12848722:Data2,[(34,42)]) } Add(GetDataEx,7090258,160,37) { Angle=3 link(Data,6420393:Var3,[]) } Add(HubEx,4906038,111,134) { link(onEvent,9560276:doSelect,[]) } Add(HubEx,2775692,265,127) { Angle=1 link(onEvent,13917089:doSelect,[(269,140)]) } Add(HubEx,4460718,389,109) { Angle=1 link(onEvent,7390697:doSelect,[(393,141)]) } Add(Hub,4564892,70,35) { OutCount=3 link(onEvent1,8626871:doRead,[(81,41)(81,69)]) link(onEvent2,13691301:doRead,[(108,48)(108,69)]) link(onEvent3,14587151:doRead,[(144,55)(144,69)]) } END_SDK Add(Label,3527572,154,7) { Left=155 Top=5 Width=38 Height=17 Caption="Реле 1" } Add(Label,7621568,299,21) { Left=135 Top=20 Width=20 Height=17 Caption="ON" } Add(Label,10395175,305,29) { Left=155 Top=20 Width=24 Height=17 Caption="OFF" } Add(Label,5140542,297,37) { Left=180 Top=20 Width=23 Height=17 Caption="N/F" } Add(Label,9234706,324,48) { Left=225 Top=5 Width=38 Height=17 Caption="Реле 2" } Add(Label,10333484,469,62) { Left=205 Top=20 Width=20 Height=17 Caption="ON" } Add(Label,6642033,475,70) { Left=225 Top=20 Width=24 Height=17 Caption="OFF" } Add(Label,15728030,467,78) { Left=250 Top=20 Width=23 Height=17 Caption="N/F" } Add(Label,16770213,103,47) { Left=15 Top=45 Width=90 Height=17 Caption="Кнопка 1 нажата" } Add(Label,1012349,77,93) { Left=15 Top=75 Width=102 Height=17 Caption="Кнопка 1 отпущена" }
Вот что-то наподобие должно выйти, только с динамикой.
|