Вверх ↑
Ответов: 3514
Рейтинг: 184
#1: 2008-12-07 21:19:24 ЛС | профиль | цитата
Видимо не до конца скопировал...
В первый раз было без таймера. Сорри.
------------ Дoбавленo:

Ок.
Как заставить работать этот пример? По идее (и по схеме) очистка идёт ДО добавления "кнопок", однако на деле всё наоборот..

Add(MainForm,11154640,259,231)
{
Width=767
Height=398
Position=1
link(onCreate,6955624:doEvent2,[])
}
Add(Hub,6955624,385,238)
{
InCount=2
OutCount=3
link(onEvent1,2792997:doTimer,[])
link(onEvent3,6711912:doWork2,[(454,258)(454,293)])
}
Add(MultiElementEx,10099988,567,287)
{
link(onSearch,4271228:doWork1,[])
link(onEndSearch,6711912:doWork3,[(611,300)(611,335)(487,335)])
link(Text,4927338:Text,[])
}
BEGIN_SDK
Add(EditMultiEx,13904184,21,21)
{
WorkCount=#6:doRead|
EventCount=#8:onSearch|11:onEndSearch|
DataCount=#4:Text|
link(doRead,7659952:doRead,[(42,27)(42,139)])
}
Add(BlockFind,10325599,238,126)
{
IncludeBlock=1
Point(doStartBlock)
Point(doEndBlock)
link(onSearch,13904184:onSearch,[(296,132)(296,27)])
link(onEndSearch,13904184:onEndSearch,[(307,139)(307,34)])
link(Text,13904184:Text,[(244,74)(27,74)])
}
Add(ArrayRW,7659952,63,133)
{
link(onRead,6238444:doEvent1,[])
link(Array,8864880:Array,[])
}
Add(StrList,8864880,49,49)
{
Strings=#4:none|3:<->|3:[-]|3:{-}|3:(-)|
}
Add(StrPart,9640661,168,133)
{
Char="-"
link(onSplit,10325599:doEndBlock,[(219,139)(219,146)])
link(onPart,10325599:doStartBlock,[(219,146)(219,139)])
}
Add(Hub,6238444,112,133)
{
link(onEvent1,9640661:doSplit,[])
link(onEvent2,10325599:doSearch,[(191,146)(191,132)])
}
END_SDK
Add(Counter,9917802,511,287)
{
link(onNext,10099988:doRead,[])
}
Add(Memo,4927338,567,224)
{
Left=5
Top=5
Width=605
Height=345
Font=[Trebuchet MS,11,0,0,204]
Strings=#10:риртл [20]|16:wefrfjneasf {10}|
ScrollBars=2
}
Add(HubEx,6711912,483,280)
{
link(onEvent,9917802:doNext,[])
}
Add(ChildScrollBox,4271228,700,287)
{
FirstUsage=0
link(onEvent1,8146038:doEvent1,[])
}
BEGIN_SDK
Add(EditMulti,3958950,21,14)
{
EventCount=1
WorkCount=2
Width=125
Height=102
link(doWork1,12187120:##add,[])
link(doWork2,12187120:##clear,[])
}
Add(ScrollBox,12972345,49,84)
{
Left=615
Top=5
Width=130
Height=341
Ctl3D=1
}
Add(ChildPanelEx,12187120,84,14)
{
Mode=1
link(onClick,3958950:onEvent1,[])
}
BEGIN_SDK
Add(EditMultiEx,3585726,21,21)
{
WorkCount=#5:##add|7:##clear|
EventCount=#7:onClick|
Width=461
Point(##add)
Point(##clear)
link(##add,16234729:doEvent1,[(42,27)(42,69)])
}
Add(Panel,15147982,49,175)
{
Width=116
Height=38
Align=2
BorderWidth=0
BevelInner=0
BevelWidth=0
}
Add(Button,772714,196,126)
{
Width=116
Height=38
Align=5
Point(doCaption)
Point(doEnabled)
link(onClick,4744248:doData,[])
}
Add(Memory,7062788,252,63)
{
}
Add(Hub,16234729,63,63)
{
link(onEvent1,7062788:doValue,[])
link(onEvent2,8686858:doWork1,[(137,76)])
}
Add(DoData,4744248,252,126)
{
link(onEventData,1771314:doCompare,[])
link(Data,7062788:Value,[])
}
Add(If_else,1771314,315,126)
{
Op2=String(ДОСП)
link(onTrue,7802571:doRandom,[])
link(onFalse,3585726:onClick,[(446,139)(446,27)])
}
Add(MultiElementEx,7802571,364,126)
{
link(onEvent1,7162586:doEvent1,[(415,132)(415,169)(66,169)(66,132)])
}
BEGIN_SDK
Add(EditMultiEx,14425099,28,14)
{
WorkCount=#8:doRandom|
EventCount=#8:onEvent1|
Width=258
Height=116
link(doRandom,62889:doRandom,[(42,20)(42,41)])
}
Add(Random,62889,56,35)
{
Max=1
link(onRandom,12159090:doEvent,[])
}
Add(DoData,8852902,180,77)
{
Data=String(Решка)
link(onEventData,3472337:doWork3,[(249,83)])
}
Add(DoData,768647,180,35)
{
Data=String(Орел)
link(onEventData,3472337:doWork2,[])
}
Add(IndexToChanel,12159090,105,35)
{
link(onEvent1,768647:doData,[])
link(onEvent2,8852902:doData,[(169,48)(169,83)])
}
Add(HubEx,3472337,245,28)
{
link(onEvent,14425099:onEvent1,[(270,41)(270,20)])
}
END_SDK
Add(HubEx,8686858,133,98)
{
Angle=1
link(onEvent,772714:doCaption,[(137,132)])
}
Add(Hub,7162586,84,126)
{
link(onEvent1,8686858:doWork2,[(124,132)(124,111)])
link(onEvent2,10870546:doData,[])
}
Add(DoData,10870546,140,133)
{
Data=Integer(0)
link(onEventData,772714:doEnabled,[])
}
END_SDK
END_SDK
Add(LineBreak,8187218,434,301)
{
link(Out,9917802:doReset,[])
Primary=[12038644,364,-7]
}
Add(Timer,2792997,469,238)
{
Interval=1
Enable=1
AutoStop=1
link(onTimer,794897:In,[])
}
Add(LineBreak,727474,651,294)
{
link(Out,4271228:doWork2,[])
Primary=[794897,-126,-56]
}
Add(Hub,8146038,749,287)
{
link(onEvent1,6955624:doEvent1,[(790,293)(790,201)(373,201)(373,244)])
link(onEvent2,12038644:In,[])
}


------------ Дoбавленo:

Нет идей, да?
карма: 0
0