Вверх ↑
Разработчик
Ответов: 26113
Рейтинг: 2126
#1: 2009-09-19 17:52:33 ЛС | профиль | цитата
BeginEnd писал(а):
Пример на обработку потоков

А зачем там три MT_Enum



Add(Edit,6913458,637,343)
{
Left=202
Top=103
Width=39
Text=""
}
Add(Edit,9167562,637,462)
{
Left=202
Top=139
Width=39
Text=""
}
Add(Timer,2818801,182,182)
{
Interval=5000
link(onTimer,14375551:doEvent1,[])
}
Add(Random,1539473,294,224)
{
link(onRandom,5732832:doText,[])
}
Add(Label,8370322,315,147)
{
Left=73
Top=78
Width=139
Height=17
Caption="Переключатель потоков"
}
Add(Edit,5732832,336,224)
{
Left=32
Top=102
Width=41
Text=""
}
Add(ComboBox,7680595,567,273)
{
Left=110
Top=104
Height=21
Strings=#1:0|1:1|1:2|
DataType=1
}
Add(MainForm,1705750,182,217)
{
Left=100
Top=100
Width=270
Height=250
Caption="Работа с потоком МТ"
link(onActivate,14375551:doEvent2,[(235,223)(235,195)])
link(onCreate,11991331:doEvent1,[])
}
Add(Random,1931246,294,287)
{
link(onRandom,7814710:doText,[])
}
Add(Edit,7814710,336,287)
{
Left=32
Top=138
Width=41
Text=""
}
Add(Hub,11991331,224,231)
{
OutCount=3
link(onEvent1,1539473:doRandomize,[])
link(onEvent2,1931246:doRandomize,[(259,244)(259,300)])
link(onEvent3,9516833:doRandomize,[(251,251)(251,356)])
}
Add(Hub,14375551,252,182)
{
InCount=2
OutCount=3
link(onEvent1,1539473:doRandom,[(286,188)(286,230)])
link(onEvent2,1931246:doRandom,[(280,195)(280,293)])
link(onEvent3,9516833:doRandom,[(274,202)(274,349)])
}
Add(MT_AddData,47677,399,343)
{
Count=3
Data=Integer(0)
InputMT=1
link(onAdd,7994879:doEnum,[])
link(Data1,5732832:Text,[(405,273)(342,273)])
link(Data2,7814710:Text,[(412,325)(342,325)])
link(Data3,899784:Text,[(419,331)(381,331)(381,387)(342,387)])
}
Add(Hub,4608925,511,343)
{
OutCount=3
link(onEvent1,10056801:doCompare,[])
link(onEvent2,1545311:doCompare,[(547,356)(547,468)])
link(onEvent3,15360365:doCompare,[(541,363)(541,587)])
}
Add(Random,9516833,294,343)
{
link(onRandom,899784:doText,[])
}
Add(Edit,899784,336,343)
{
Left=32
Top=179
Width=41
Text=""
link(onChange,47677:doAdd,[])
}
Add(Edit,10453520,637,581)
{
Left=202
Top=179
Width=39
Text=""
}
Add(MT_Enum,7994879,462,343)
{
link(onItem,4608925:doEvent1,[])
}
Add(If_else,10056801,567,343)
{
link(onTrue,6913458:doText,[])
link(Op1,8943053:Var3,[(573,331)(557,331)(557,397)])
link(Op2,7680595:String,[])
}
Add(ComboBox,7890526,567,392)
{
Left=110
Top=139
Height=21
Strings=#1:0|1:1|1:2|
DataType=1
}
Add(If_else,1545311,567,462)
{
link(onTrue,9167562:doText,[])
link(Op1,2905713:Var3,[(573,453)])
link(Op2,7890526:String,[])
}
Add(ComboBox,9635951,567,511)
{
Left=110
Top=179
Height=21
Strings=#1:0|1:1|1:2|
DataType=1
}
Add(If_else,15360365,567,581)
{
link(onTrue,10453520:doText,[])
link(Op1,2905713:Var2,[(573,506)(475,506)])
link(Op2,9635951:String,[])
}
Add(Label,16305101,357,147)
{
Left=13
Top=103
Width=10
Caption="0"
}
Add(Label,2033701,399,147)
{
Left=13
Top=138
Width=10
Caption="1"
}
Add(Label,15274741,441,147)
{
Left=13
Top=179
Width=10
Caption="2"
}
Add(Image,11528805,182,140)
{
Left=10
Top=10
Width=60
Height=60
ViewStyle=1
Picture=[ZIPC204000078DA73F23DC4C200064E40AC01C41250CCC820C0C00CA41BA0F228A08681E10150521EC8FC5F8F0E199044116C06AC6A1132C82461F5C88036EA515984DD4FAA7FD1FD8EEA3AD2A03C030862BA1FDD37100C510DD3816A333677D05A3DB1EEA704A29A808F47C80598EE81852B6A2863E391EB9EC1A79EB4B0C79D02B0A507440E22C4034100C9665A11]
}
Add(Image,1103497,224,140)
{
Left=85
Top=10
Width=60
Height=60
ViewStyle=1
Picture=[ZIPC204000078DA73F23DC4C200064E40AC01C41250CCC820C0C00CA41BA0F228A08681E10150521EC8FC5F8F0E199044116C06AC6A1132C82461F5C88036EA515984DD8FDFBFB84C42F81ADD75D8ED423611178FC5020689518FAC0AC486F1B1AB473513621736F58A2CB854C3C4202A6070A90836F5982A50DD834F3DAA7B709B0F134335FF980421F5101530F85C0657F8A0AB80400E455CE18FA90204BD3409C52FB28AFFF5D9BA84D20FAA8A1E4342EA5155AC353D6729E0844BAD80D339CBB5A6844CA40E04003776BB6E]
}
Add(GetDataEx,8943053,469,392)
{
link(Data,7994879:Index,[])
}
Add(GetDataEx,2905713,469,448)
{
link(Data,8943053:Var2,[])
}

карма: 22

0