Add(MainForm,11339219,238,469)
{
}
Add(Button,2151046,294,469)
{
Left=135
Top=25
Caption="Calc"
link(onClick,1834605:doData,[])
}
Add(Edit,7683434,483,462)
{
Left=200
Top=25
Text=""
}
Add(MathParse,10424193,434,462)
{
DataCount=1
MathStr=""
Point(doMathStr)
Point(reCalc)
link(onResult,7683434:doText,[])
link(X1,2371725:GetData,[])
}
Add(Hub,14902312,392,469)
{
link(onEvent1,10424193:doMathStr,[])
link(onEvent2,10424193:doCalc,[(420,482)(420,468)])
}
Add(DoData,1834605,343,469)
{
Data=String()
link(onEventData,14902312:doEvent1,[])
link(Data,8214691:Text,[])
}
Add(Edit,8214691,343,399)
{
Left=10
Top=25
Width=110
Text="(2+2)*3-10/2 + %1"
}
Add(MathParse,14576552,623,336)
{
DataCount=0
MathStr="pi"
Point(reCalc)
}
Add(Memory,11418324,434,336)
{
Default=Integer(120)
}
Add(Memory,13664554,518,280)
{
Default=Integer(10)
}
Add(Memory,10507366,574,280)
{
Default=Integer(20)
}
Add(EventFromData,2371725,434,399)
{
link(onEvent,7256487:doOperation,[])
}
Add(Math,7256487,490,399)
{
link(onResult,8297307:doOperation,[])
link(Op1,11418324:Value,[(496,383)(440,383)])
link(Op2,9448255:GetData,[])
}
Add(EventFromData,9448255,497,336)
{
link(onEvent,5343131:doOperation,[])
}
Add(Math,5343131,546,336)
{
link(onResult,9448255:doData,[(613,342)(613,273)(487,273)(487,342)])
link(Op1,13664554:Value,[(552,324)(524,324)])
link(Op2,10507366:Value,[(559,324)(580,324)])
}
Add(Math,8297307,546,399)
{
OpType=3
Op2=180
link(onResult,1125339:doOperation,[])
}
Add(Math,1125339,623,399)
{
OpType=2
Op2=180
link(onResult,2371725:doData,[(667,405)(667,265)(418,265)(418,405)])
link(Op2,14576552:reCalc,[])
}
Но, увы и ах, к сожалению, для каждого случая примеров не напишешь.