Все большое спасибо) Получилось что я хотел. Мб не совсем корректно) но работает так как я хотел) Изменение размера окна для того чтобы исчезал старый график)) он только так пропадает) Схема Add(MainForm,2500723,441,147) { Width=815 Height=546 Point(Width) Point(Handle) } Add(Math,3951809,441,105) { Op2=1 link(onResult,12810390:doEvent1,[(485,111)(485,160)(394,160)(394,202)]) link(Op1,2500723:Width,[(447,93)(435,93)(435,191)(447,191)]) } Add(SizeWindow,15012923,441,196) { link(Handle,2500723:Handle,[(447,191)(454,191)]) } Add(LineBreakEx,13386543,413,105) { Type=1 link(OnEvent,3951809:doOperation,[]) } Add(Math,4814021,441,238) { OpType=1 Op2=1 link(onResult,9393952:doWork3,[(485,244)(485,224)(431,224)]) link(Op1,15012923:CurrentWidth,[]) } Add(Hub,12810390,399,196) { link(onEvent1,9393952:doWork2,[]) link(onEvent2,4814021:doOperation,[(427,209)(427,244)]) } Add(HubEx,9393952,427,196) { link(onEvent,15012923:doWidth,[]) } Add(Plotter,9983591,553,126) { Width=779 Height=337 Align=5 Name="graf" ModeSp=2 ColorSp=-16777215 GridColor=-16777194 MaxH=1000 FileName="123.bmp" MouseControl=1 Point(doSaveToFile) Point(doMinW) Point(doMaxW) Point(MaxX) } Add(LineBreakEx,13779144,350,161) { } Add(PageControl,4891136,301,161) { Width=100 Height=180 Align=4 Childrens=#1:1|1:2| Selected="1" Buttons=0 link(onEvent1,13779144:doWork,[]) } BEGIN_SDK Add(EditPolyMulti,13406278,21,21) { WorkCount=#10:doWork1=AN| EventCount=#11:onEvent1=AN| } Add(PagePanel,13364028,35,105) { Top=381 Width=410 Height=130 Align=4 } END_SDK BEGIN_SDK Add(EditPolyMulti,5297670,21,21) { WorkCount=#10:doWork1=AN| EventCount=#11:onEvent1=AN| Width=356 Height=172 link(doWork1,10990487:doWork1,[(77,27)(77,125)]) } Add(PagePanel,7434761,35,105) { Top=352 Width=799 Height=156 Align=4 Caption="Собственики" } Add(MultiElement,10990487,133,119) { link(onEvent1,5297670:onEvent1,[(243,125)(243,27)]) link(Data1,5953260:Var1,[]) link(Data2,5953260:Var2,[]) } BEGIN_SDK Add(EditMulti,12662376,21,21) { EventCount=1 WorkCount=2 DataCount=2 Width=650 Height=445 link(doWork1,7420972:doWork2,[(77,27)(77,111)]) link(doWork2,5900326:doCompare,[(42,34)(42,202)]) } Add(PlotLines,1201481,336,189) { Grapher="parent.parent.graf" Color=16711680 Step=1 MaxValues=100 Name="OK" Point(ValuesX) Point(ValuesY) Point(doShow) } Add(PlotSeriesMarker,10886451,336,133) { Grapher="parent.parent.graf" VAlign=2 Series="OK" link(QueryText,15248326:GetData,[]) } Add(ArrayEnum,1570907,175,105) { link(onItem,5526019:doSplit,[]) link(Array,12662376:Data1,[(181,56)(27,56)]) } Add(StrPart,5526019,224,105) { Char="/" link(onSplit,15399875:doAdd,[(285,111)(285,62)]) link(onPart,1201481:doAdd,[(264,118)(264,195)]) } Add(StrList,15399875,392,56) { Point(doGetString) Point(onGetString) link(onChange,10886451:doSetText,[(438,62)(438,174)(326,174)(326,139)]) link(onGetString,15248326:doData,[(431,69)(431,48)(326,48)(326,90)]) } Add(EventFromData,15248326,336,84) { link(onEvent,15399875:doGetString,[(380,90)(380,104)]) } Add(If_else,5900326,105,196) { Op1=String() Op2=String(1) link(onTrue,7250298:doData,[(149,202)(149,184)(121,184)(121,167)]) link(onFalse,510858:doEvent1,[]) link(Op1,12662376:Data2,[(111,102)(34,102)]) } Add(HubEx,8176555,140,105) { link(onEvent,1570907:doEnum,[]) } Add(DoData,7250298,133,161) { link(onEventData,8176555:doWork3,[(177,167)(177,141)(144,141)]) } Add(Hub,510858,175,203) { link(onEvent1,1201481:doClear,[(237,209)(237,202)]) link(onEvent2,12662376:onEvent1,[(409,216)(409,27)]) } Add(Timer,5807028,63,266) { Interval=100 AutoStop=1 link(onTimer,7420972:doWork3,[(123,272)]) } Add(HubEx,7420972,119,105) { link(onEvent,8176555:doWork2,[]) } END_SDK Add(ChildPanel,5953260,133,77) { link(onEvent1,10990487:doWork2,[(177,83)(177,107)(153,110)(121,107)(121,132)]) } BEGIN_SDK Add(EditMulti,5274365,21,21) { EventCount=1 VarCount=2 link(Var1,1702161:Array,[(27,165)(139,165)]) link(Var2,2734288:Checked,[(34,189)(188,189)]) } Add(Panel,11750682,35,105) { Left=1 Top=1 Width=398 Height=154 Align=4 } Add(CheckBox,2734288,182,126) { Left=10 Top=5 Width=105 Checked=0 Caption="Показывать" link(onCheck,5274365:onEvent1,[(268,132)(268,27)]) } Add(ListBox,1702161,119,63) { Top=386 Width=410 Height=125 Align=4 Strings=#3:0/0|14:400/11.12(400)|14:500/12.12(500)|14:700/13.12(700)|14:500/14.12(550)|14:300/15.12(300)|14:400/11.12(400)|14:500/12.12(500)|14:700/13.12(700)|14:500/14.12(550)|14:300/15.12(300)| } END_SDK END_SDK BEGIN_SDK Add(EditPolyMulti,15025724,21,21) { WorkCount=#10:doWork1=AN| EventCount=#11:onEvent1=AN| link(doWork1,8978900:doWork1,[(84,27)(84,104)]) } Add(PagePanel,9364460,35,105) { Top=350 Height=160 Align=4 Caption="Агент" } Add(MultiElement,8978900,147,98) { link(onEvent1,15025724:onEvent1,[(250,104)(250,27)]) link(Data1,2024142:Var1,[]) link(Data2,2024142:Var2,[]) } BEGIN_SDK Add(EditMulti,11373944,21,21) { EventCount=1 WorkCount=2 DataCount=2 Width=650 Height=445 link(doWork1,15955165:doWork2,[(77,27)(77,97)]) link(doWork2,3133689:doCompare,[(67,34)(67,181)]) } Add(PlotLines,11257983,294,175) { Grapher="parent.parent.graf" Step=1 MaxValues=100 Name="AN" Point(ValuesX) Point(ValuesY) Point(doShow) } Add(PlotSeriesMarker,3363581,294,119) { Grapher="parent.parent.graf" VAlign=2 Series="AN" link(QueryText,3799184:GetData,[]) } Add(ArrayEnum,3988230,133,91) { link(onItem,6656333:doSplit,[]) link(Array,11373944:Data1,[(139,56)(27,56)]) } Add(StrPart,6656333,182,91) { Char="/" link(onSplit,4107143:doAdd,[(243,97)(243,48)]) link(onPart,11257983:doAdd,[(222,104)(222,181)]) } Add(StrList,4107143,350,42) { Point(doGetString) Point(onGetString) link(onChange,3363581:doSetText,[(396,48)(396,160)(284,160)(284,125)]) link(onGetString,3799184:doData,[(389,55)(389,34)(284,34)(284,76)]) } Add(EventFromData,3799184,294,70) { link(onEvent,4107143:doGetString,[(338,76)(338,90)]) } Add(HubEx,15955165,112,91) { link(onEvent,3988230:doEnum,[]) } Add(If_else,3133689,70,175) { Op1=String() Op2=String(1) link(onTrue,10767800:doData,[(110,181)(110,146)]) link(onFalse,7432837:doEvent1,[]) link(Op1,11373944:Data2,[(76,98)(34,98)]) } Add(DoData,10767800,119,140) { link(onEventData,15955165:doWork3,[(163,146)(163,123)(116,123)]) } Add(Hub,7432837,168,182) { link(onEvent1,11257983:doClear,[]) link(onEvent2,11373944:onEvent1,[(426,195)(426,27)]) } END_SDK Add(ChildPanel,2024142,147,56) { link(onEvent1,8978900:doWork2,[(191,62)(191,86)(135,86)(135,111)]) } BEGIN_SDK Add(EditMulti,7682561,21,21) { EventCount=1 VarCount=2 link(Var1,14707582:Array,[(27,161)(153,161)]) link(Var2,5095793:Checked,[(34,189)(188,189)]) } Add(Panel,6069976,35,105) { Left=1 Top=1 Width=398 Height=158 Align=4 } Add(ListBox,14707582,133,56) { Left=2 Top=29 Width=467 Height=125 Align=4 Strings=#3:0/0|14:500/11.12(500)|14:600/12.12(600)|14:400/13.12(400)|14:700/14.12(700)|14:550/15.12(550)|14:500/11.12(500)|14:600/12.12(600)|14:400/13.12(400)|14:700/14.12(700)|14:550/15.12(550)|14:500/11.12(500)|14:600/12.12(600)|14:400/13.12(400)|14:700/14.12(700)|14:550/15.12(550)|14:500/11.12(500)|14:600/12.12(600)|14:400/13.12(400)|14:700/14.12(700)|14:550/15.12(550)| } Add(CheckBox,5095793,182,126) { Left=10 Top=5 Width=105 Caption="Показывать" link(onCheck,7682561:onEvent1,[(268,132)(268,27)]) } END_SDK END_SDK Add(ScrollBarEx,1145851,553,210) { Top=337 Width=799 Align=4 Max=30 Min=15 Position=15 Point(doMin) link(onPosition,9983591:doMaxW,[(597,216)(597,209)(541,209)(541,153)]) } Add(UpDown,10021049,553,168) { Left=779 Height=337 Align=3 Max=30 link(onPosition,9276100:doEvent1,[(593,174)(593,167)]) } Add(Hub,9276100,602,161) { link(onEvent1,9983591:doMinW,[(628,167)(628,157)(541,157)(541,146)]) link(onEvent2,6248973:doData,[(628,174)(628,195)(499,195)(499,223)]) } Add(EventFromData,6248973,511,217) { link(onEvent,1145851:doMin,[]) link(Data,10021049:Position,[(517,209)(559,209)]) }
Редактировалось 1 раз(а), последний 2018-12-11 10:14:29
|