z80 писал(а):
а подскажите как реализоватьВообще-то, конкретная реализация заточена под один прогресс.
------------ Дoбавленo в 17.24:
Обнови компонент с SVN и попробуй вот такую схему
Add(MainForm,2953706,98,203)
{
Width=303
Height=165
Caption="TaskProgressBar"
BorderStyle=4
Position=1
link(onCreate,3851787:doDeferredEvent,[])
}
Add(Timer,8698242,266,217)
{
Interval=50
Enable=1
link(onTimer,7977314:doNext,[])
}
Add(CounterEx,7977314,315,217)
{
Max=200
Point(doReset)
Point(onThroughMax)
link(onNext,2805494:doEvent,[])
}
Add(Button,6685842,210,91)
{
Left=15
Top=15
TabOrder=-1
Caption="1"
link(onClick,10993647:doEvent1,[])
}
Add(Button,4498378,210,126)
{
Left=15
Top=40
TabOrder=-1
Caption="2"
link(onClick,14926724:doEvent1,[])
}
Add(Timer,14269459,266,266)
{
Interval=50
Enable=1
link(onTimer,10089093:doNext,[])
}
Add(CounterEx,10089093,315,266)
{
Max=300
Point(doReset)
Point(onThroughMax)
link(onNext,8726379:doEvent,[])
}
Add(TaskProgressBar,4436180,623,210)
{
Point(doError)
Point(doMax)
}
Add(Hub,2278353,217,217)
{
link(onEvent1,8698242:doTimer,[])
link(onEvent2,14269459:doTimer,[(249,230)(249,272)])
}
Add(DeferredEvent,3851787,168,217)
{
link(onDeferredEvent,2278353:doEvent1,[])
}
Add(IndexToChanel,2805494,420,217)
{
Point(Index)
link(onEvent2,5725520:doWork2,[])
link(Index,10747016:Var2,[])
}
Add(IndexToChanel,8726379,385,266)
{
Count=3
Point(Index)
link(Index,10747016:Var1,[(391,201)])
link(onEvent3,5725520:doWork3,[(473,286)])
}
Add(GetDataEx,10747016,420,196)
{
link(Data,14621937:Value,[])
}
Add(VisualStrings,9755744,511,91)
{
Lines=#3:200|
Point(doText)
Point(onText)
link(onText,6241365:doWork1,[(571,97)])
}
Add(VisualStrings,8398314,511,126)
{
Lines=#3:300|
Point(doText)
Point(onText)
link(onText,6241365:doWork2,[])
}
Add(HubEx,6241365,567,126)
{
Angle=1
link(onEvent,4436180:doMax,[(571,244)])
}
Add(Hub,10993647,280,91)
{
OutCount=3
link(onEvent1,9755744:doText,[])
link(onEvent2,4436180:doOn,[(375,104)(375,83)(578,83)(578,216)])
link(onEvent3,10130747:doWork2,[(347,111)(347,160)])
}
Add(Hub,14926724,280,126)
{
OutCount=3
link(onEvent1,8398314:doText,[])
link(onEvent2,4436180:doError,[(480,139)(480,237)])
link(onEvent3,10130747:doWork3,[(340,146)(340,167)])
}
Add(HubEx,5725520,469,224)
{
link(onEvent,4686105:doWork2,[])
}
Add(Button,3184065,210,175)
{
Left=15
Top=95
TabOrder=-1
Caption="Stop"
link(onClick,2475810:doEvent1,[])
}
Add(ChanelToIndex,10130747,371,147)
{
Count=3
link(onIndex,14621937:doValue,[])
}
Add(Memory,14621937,420,147)
{
}
Add(Hub,2475810,280,175)
{
OutCount=3
link(onEvent1,10130747:doWork1,[(305,181)(305,153)])
link(onEvent2,3652682:doText,[(459,188)(459,181)])
link(onEvent3,4436180:doOff,[(459,195)(459,223)])
}
Add(VisualStrings,3652682,504,175)
{
Lines=#1:0|
Point(doText)
Point(onText)
link(onText,4686105:doWork1,[(564,181)])
}
Add(HubEx,4686105,560,224)
{
link(onEvent,4436180:doPosition,[])
}