Cosinus писал(а): Устраиваю конкурс.
Кто сделает динамическое изменение размеров Формы и контролов.
Add(MainForm,2953706,70,147) { Width=684 Height=351 Point(onMouseMove) link(onCreate,7370530:doWork2,[]) } Add(SizeWindow,9814279,945,196) { link(Handle,2540942:Var3,[(951,117)]) } Add(VisualShape,13705162,189,70) { Left=195 Top=55 Width=230 Height=85 Name="rrr" Point(Handle) Point(onMouseDown) link(onMouseDown,7370530:doWork1,[(233,76)(233,57)(116,57)]) } Add(MoveWindow,4711411,189,147) { link(Handle,13826511:Var2,[]) } Add(GetDataEx,13826511,189,112) { link(Data,13705162:Handle,[]) } Add(Hub,14994060,133,196) { link(onEvent1,4711411:doMove,[(175,202)(175,153)]) link(onEvent2,4699739:doEvent1,[]) } Add(ChildPanelEx,5447861,287,196) { @Hint=#15:чёрный сплиттер| link(onMouseDown,14177587:doValue,[]) AddHint(7,-27,101,13,@Hint) } BEGIN_SDK Add(EditMultiEx,16592289,21,21) { WorkCount=#5:##add|7:##clear|0:| EventCount=#11:onMouseDown| Width=293 Height=221 Point(##add) Point(##clear) link(##add,7098231:doSeparateMT,[(53,27)(53,55)]) } Add(Panel,15025689,133,42) { Left=55 Top=145 Width=10 Height=10 Color=0 Cursor=10 BorderWidth=0 BevelInner=0 BevelWidth=0 Point(doLeft) Point(doTop) Point(Handle) Point(onMouseDown) Point(Left) Point(Top) link(onMouseDown,10907990:doEvent1,[(192,55)(192,148)(78,148)(78,195)]) } Add(MoveWindow,13075223,133,161) { link(Handle,15025689:Handle,[]) } Add(MT_MultiData,7098231,84,49) { Point(RemaindData) link(onData1,15025689:doLeft,[]) link(onData2,15025689:doTop,[]) } Add(Hub,10907990,91,189) { link(onEvent1,13075223:doMove,[(119,195)(119,167)]) link(onEvent2,4012079:doAdd,[]) } Add(MT_AddData,4012079,203,196) { Count=3 PColor(Data3,16711850) link(onAdd,16592289:onMouseDown,[(275,202)(275,27)]) link(Data1,15025689:Left,[(209,101)(146,101)]) link(Data2,15025689:Top,[(216,90)(153,90)]) link(Data3,7098231:RemaindData,[(223,124)(90,124)]) } END_SDK Add(PosWindow,11949844,854,238) { link(Handle,2540942:Var2,[]) } Add(LineBreakEx,6513271,945,245) { Caption="W" Type=3 link(_Data,9814279:CurrentWidth,[]) } Add(LineBreakEx,15339684,952,266) { Caption="H" Type=3 link(_Data,9814279:CurrentHeight,[]) } Add(LineBreakEx,4836475,861,308) { Caption="T" Type=3 link(_Data,11949844:CurrentTop,[]) } Add(LineBreakEx,5685358,854,287) { Caption="L" Type=3 link(_Data,11949844:CurrentLeft,[]) } Add(HubEx,7370530,112,161) { Angle=1 link(onEvent,14994060:doEvent1,[(116,202)]) } Add(MultiElement,5939443,231,196) { @Hint=#31:формирует координаты сплиттеров| link(onEvent1,5447861:##add,[]) link(Data1,12371504:getVar,[]) link(Data2,10455121:getVar,[]) link(Data3,3342951:getVar,[]) link(Data4,3772668:getVar,[]) AddHint(-116,64,196,13,@Hint) } BEGIN_SDK Add(EditMulti,1147117,21,21) { EventCount=1 WorkCount=1 DataCount=4 Width=447 Height=305 link(doWork1,395991:doEvent1,[(74,27)(74,167)]) } Add(Hub,395991,84,161) { OutCount=4 link(onEvent1,9573466:doOperation,[(130,167)(130,104)]) link(onEvent2,12393757:doAdd,[]) link(onEvent3,7892698:doAdd,[(146,181)(146,216)]) link(onEvent4,6058377:doAdd,[(128,188)(128,258)]) } Add(MT_AddData,12393757,308,168) { Count=3 Data=Integer(1) PColor(Data1,11184895) link(onAdd,2605777:doWork2,[]) link(Data1,6734641:Var3,[(314,144)]) link(Data2,7138518:Var2,[]) } Add(MT_AddData,7892698,259,210) { Count=3 Data=Integer(2) PColor(Data1,11184895) link(onAdd,13681799:doWork2,[]) link(Data1,6734641:Var2,[]) link(Data2,8963969:Var3,[(272,194)]) } Add(MT_AddData,6058377,203,252) { Count=3 Data=Integer(3) PColor(Data1,11141375) link(onAdd,13681799:doWork3,[(425,258)]) link(Data1,8549641:Var2,[(209,238)(167,238)]) link(Data2,8963969:Var2,[]) } Add(HubEx,13681799,421,210) { Angle=3 link(onEvent,2605777:doWork3,[]) } Add(HubEx,2605777,421,168) { Angle=3 link(onEvent,13924832:doWork3,[]) } Add(HubEx,13924832,421,98) { Angle=3 link(onEvent,1147117:onEvent1,[(425,27)]) } Add(LineBreakEx,5633230,259,49) { Caption="W" Type=2 } Add(LineBreakEx,1536424,210,49) { Caption="H" Type=2 } Add(LineBreakEx,1319148,266,70) { Caption="L" Type=2 } Add(LineBreakEx,4224998,315,70) { Caption="T" Type=2 } Add(LineBreakEx,7200852,217,70) { Caption="T" Type=2 } Add(Math,9573466,161,98) { OpType=1 Op2=10 ResultType=0 link(onResult,221260:doOperation,[]) link(Op1,11535303:getVar,[]) } Add(LineBreakEx,11535303,161,70) { Caption="L" Type=2 } Add(Math,5132671,315,98) { OpType=1 Op2=10 ResultType=0 link(onResult,16599289:doAdd,[]) link(Op1,4224998:getVar,[]) } Add(MT_AddData,16599289,364,98) { Count=3 Data=Integer(0) link(onAdd,13924832:doWork2,[]) link(Data1,8549641:Var3,[(370,45)(199,45)(199,145)]) link(Data2,7138518:Var3,[(377,82)(409,82)(409,144)]) } Add(LineBreakEx,11069407,21,42) { Caption="W" Type=3 link(_Data,1147117:Data1,[]) } Add(LineBreakEx,15948589,28,63) { Caption="H" Type=3 link(_Data,1147117:Data2,[]) } Add(LineBreakEx,13779830,42,105) { Caption="T" Type=3 link(_Data,1147117:Data4,[]) } Add(LineBreakEx,14885815,35,84) { Caption="L" Type=3 link(_Data,1147117:Data3,[]) } Add(Math,221260,210,98) { ResultType=0 link(onResult,6962535:doOperation,[]) link(Op1,1536424:getVar,[]) link(Op2,7200852:getVar,[]) } Add(Math,6962535,259,98) { ResultType=0 link(onResult,5132671:doOperation,[]) link(Op1,5633230:getVar,[]) link(Op2,1319148:getVar,[]) } Add(GetDataEx,8549641,161,140) { PColor(Data,11141375) link(Data,9573466:Result,[]) } Add(GetDataEx,8963969,210,189) { link(Data,221260:Result,[]) } Add(GetDataEx,6734641,259,139) { PColor(Data,11184895) link(Data,6962535:Result,[]) } Add(GetDataEx,7138518,315,139) { link(Data,5132671:Result,[]) } END_SDK Add(LineBreakEx,12371504,231,126) { Caption="W" Type=2 } Add(LineBreakEx,10455121,238,140) { Caption="H" Type=2 } Add(LineBreakEx,3772668,252,168) { Caption="T" Type=2 } Add(LineBreakEx,3342951,245,154) { Caption="L" Type=2 } Add(Timer,7167172,490,203) { Interval=10 Enable=1 AutoStop=1 link(onTimer,4699739:doEvent2,[(534,209)(534,247)(156,247)(156,216)]) } Add(RedrawManager,7170724,448,210) { ControlManager="rrr" } Add(Hub,4699739,175,203) { InCount=2 link(onEvent1,5447861:##clear,[]) link(onEvent2,5939443:doWork1,[(210,216)(210,202)]) } Add(LineBreakEx,15832071,672,133) { Caption="L" Type=2 } Add(LineBreakEx,9073160,742,133) { Caption="T" Type=2 } Add(Math,91918,672,329) { OpType=1 ResultType=0 link(onResult,8692833:doWork3,[(907,335)]) link(Op1,11315002:getVar,[]) link(Op2,2367919:getVar,[]) } Add(LineBreakEx,11315002,672,280) { Caption="Lpos" Type=2 } Add(LineBreakEx,29487,686,175) { Caption="W" Type=2 } Add(LineBreakEx,16090452,728,245) { Caption="Tpos" Type=2 } Add(LineBreakEx,2197345,784,210) { Caption="Lpos" Type=2 } Add(Math,6180119,784,238) { Op2=10 ResultType=0 link(onResult,11949844:doLeft,[]) link(Op1,2197345:getVar,[]) } Add(Math,12165866,728,273) { Op2=10 ResultType=0 link(onResult,11949844:doTop,[(841,279)(841,251)]) link(Op1,16090452:getVar,[]) } Add(LineBreakEx,179805,679,154) { Caption="Lpos" Type=2 } Add(MathParse,7716671,742,203) { DataCount=3 MathStr="(%1 - %2)+ %3 -10" ResultType=0 link(onResult,10494790:doWork2,[]) link(X1,9073160:getVar,[]) link(X2,6655477:getVar,[]) link(X3,10529245:getVar,[]) } Add(LineBreakEx,10529245,756,175) { Caption="H" Type=2 } Add(LineBreakEx,6655477,749,154) { Caption="Tpos" Type=2 } Add(MathParse,12819841,672,196) { DataCount=3 MathStr="(%1 - %2)+ %3 -10" ResultType=0 link(onResult,8692833:doWork2,[]) link(X1,15832071:getVar,[]) link(X2,179805:getVar,[]) link(X3,29487:getVar,[]) } Add(LineBreakEx,2277707,623,336) { Caption="Tpos" Type=2 } Add(Math,14246733,623,385) { OpType=1 ResultType=0 link(onResult,10494790:doWork3,[(921,391)]) link(Op1,2277707:getVar,[]) link(Op2,9311664:getVar,[]) } Add(LineBreakEx,2367919,679,301) { Caption="L" Type=2 } Add(LineBreakEx,9311664,630,357) { Caption="T" Type=2 } Add(HubEx,8692833,903,196) { link(onEvent,9814279:doWidth,[]) } Add(HubEx,10494790,917,203) { link(onEvent,9814279:doHeight,[]) } Add(LineBreakEx,4255984,343,259) { Caption="Tpos" Type=3 link(_Data,14177587:Value2,[]) } Add(LineBreakEx,4222610,336,280) { Caption="Lpos" Type=3 link(_Data,14177587:Value1,[]) } Add(MT_MultiMem,14177587,336,196) { link(onData,244664:doSplit,[]) } Add(MT_Part,244664,378,196) { After=1 link(onSplit,14073004:doEvent1,[]) } Add(Hub,14073004,420,196) { OutCount=3 link(onEvent1,15379499:doSet,[]) link(onEvent2,7167172:doTimer,[]) link(onEvent3,7170724:doRedraw,[]) } Add(MultiSetParam,15379499,553,196) { Parameters=#11:1;2;3;4; ; |11: ;2; ;4;5; |11: ; ; ; ;5;6|11:1; ;3; ; ;6| Count=6 Point(Index) link(onSet1,12819841:doCalc,[]) link(onSet2,7716671:doCalc,[]) link(onSet3,6180119:doOperation,[(661,216)(661,244)]) link(onSet4,12165866:doOperation,[(642,223)(642,279)]) link(onSet5,91918:doOperation,[(623,230)(623,335)]) link(onSet6,14246733:doOperation,[(604,237)(604,391)]) } Add(GetDataEx,2540942,854,112) { Angle=3 link(Data,13826511:Var3,[]) }
Cosinus, ты не это хотел?
|