egorhay писал(а):
Изменение размера окна для того чтобы исчезал старый графикА зачем его менять, когда это делается совсем по-другому
Схема
Add(MainForm,2500723,462,329)
{
Width=815
Height=546
Name="form"
Point(Width)
Point(Handle)
}
Add(Plotter,9983591,693,301)
{
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(PageControl,4891136,462,273)
{
Width=100
Height=180
Align=4
Childrens=#1:1|1:2|
Selected="2"
Buttons=0
link(onEvent1,788149:doRedraw,[])
}
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=174
Height=123
link(doWork1,10990487:doWork1,[(81,27)(81,83)])
}
Add(PagePanel,7434761,35,77)
{
Top=352
Width=799
Height=156
Align=4
Caption="Собственики"
}
Add(MultiElement,10990487,98,77)
{
link(onEvent1,5297670:onEvent1,[(144,83)(144,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,98,35)
{
link(onEvent1,10990487:doWork2,[(137,41)(137,27)(88,27)(88,90)])
}
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=797
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|
Width=174
Height=123
link(doWork1,8978900:doWork1,[(81,27)(81,83)])
}
Add(PagePanel,9364460,35,77)
{
Top=347
Width=799
Height=160
Align=4
Caption="Агент"
}
Add(MultiElement,8978900,98,77)
{
link(onEvent1,15025724:onEvent1,[(144,83)(144,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,98,35)
{
link(onEvent1,8978900:doWork2,[(137,41)(137,27)(88,27)(88,90)])
}
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,630,322)
{
Top=337
Width=799
Align=4
Max=30
Min=15
Position=15
Point(doMin)
link(onPosition,9983591:doMaxW,[])
}
Add(UpDown,10021049,581,273)
{
Left=779
Height=337
Align=3
Max=30
link(onPosition,9276100:doEvent1,[])
}
Add(Hub,9276100,630,273)
{
link(onEvent1,9983591:doMinW,[(669,279)(669,321)])
link(onEvent2,4016957:doData,[(655,286)(655,265)(571,265)(571,335)])
}
Add(RedrawManager,788149,511,273)
{
ControlManager="graf"
EraseMode=0
}
Add(DoData,4016957,581,329)
{
link(onEventData,1145851:doMin,[])
link(Data,10021049:Position,[])
}