Вверх ↑
Ответов: 1841
Рейтинг: 369
#1: 2012-07-01 15:54:47 ЛС | профиль | цитата
Сделал на основе предыдущих наработок
см. ниже...
------------ Дoбавленo в 15.54:
Оптимизированный вариант

Add(MainForm,2276058,203,126)
{
}
Add(ChildScrollBox,3695061,273,126)
{
}
BEGIN_SDK
Add(EditMulti,8661688,21,21)
{
Width=881
Height=522
}
Add(ScrollBox,8763119,309,210)
{
Left=35
Top=105
Width=787
Height=538
Align=5
}
Add(Image,3572058,203,203)
{
Width=2000
Height=2000
Cursor=2
ViewStyle=1
MouseCapture=0
Point(onMouseDown)
Point(onMouseUp)
Point(onMouseMove)
Point(MouseX)
Point(MouseY)
link(onMouseDown,6623983:MouseDown,[])
link(onMouseUp,6623983:MouseUp,[])
link(onMouseMove,6623983:MouseMove,[])
}
Add(MultiElementEx,6623983,259,210)
{
link(SetHPos,8763119:doHScroll,[])
link(SetVPos,8763119:doVScroll,[])
link(MousePosX,3572058:MouseX,[(265,191)(188,191)(188,246)(216,246)])
link(MousePosY,3572058:MouseY,[(272,183)(180,183)(180,250)(223,250)])
link(HPos,8763119:HPos,[(279,184)(357,184)(357,255)(315,255)])
link(VPos,8763119:VPos,[(286,193)(349,193)(349,251)(322,251)])
}
BEGIN_SDK
Add(EditMultiEx,10169,21,21)
{
WorkCount=#9:MouseDown|7:MouseUp|9:MouseMove|
EventCount=#7:SetHPos|7:SetVPos|
DataCount=#9:MousePosX|9:MousePosY|4:HPos|4:VPos|
Width=762
Height=207
VOffset=100
HOffset=100
link(MouseDown,14693571:In,[(31,127)(31,119)])
link(MouseUp,5452103:In,[])
link(MouseMove,13650830:In,[(31,141)(31,149)])
}
Add(IndexToChanel,14061752,391,171)
{
Point(Index)
link(onEvent2,6615332:doCalc,[])
link(Index,10082064:State,[])
}
Add(Switch,10082064,391,127)
{
DataOn=Integer(1)
DataOff=Integer(0)
Point(doOn)
Point(State)
}
Add(Hub,2828195,325,95)
{
link(onEvent1,4990918:doValue,[])
link(onEvent2,1878410:In,[])
}
Add(FastMathParse,6615332,440,178)
{
DataCount=3
MathStr="(%1 - %2) + %3"
link(onResult,3776936:doEvent1,[])
link(X1,4990918:Value,[])
link(X2,11547312:getVar,[])
link(X3,1551074:Var,[])
}
Add(FastMathParse,5833451,578,185)
{
DataCount=3
MathStr="(%1 - %2) + %3"
link(onResult,11649549:In,[])
link(X1,1086353:Value,[])
link(X2,13592720:getVar,[])
link(X3,6180246:Var,[])
}
Add(Memory,4990918,440,95)
{
Default=Integer(0)
Point(Data)
link(onData,1086353:doValue,[])
link(Data,2529892:getVar,[])
}
Add(Memory,1086353,578,95)
{
Default=Integer(0)
Point(Data)
link(Data,4250776:getVar,[])
}
Add(LineBreak,853321,237,95)
{
Caption="MouseDown"
link(Out,2828195:doEvent1,[])
Primary=[14693571,-197,18]
}
Add(LineBreak,16324362,302,171)
{
Caption="MouseMove"
link(Out,14061752:doEvent,[])
Primary=[13650830,-262,-28]
}
Add(LineBreakEx,14299132,121,80)
{
Caption="MousePosX"
Type=3
link(_Data,10169:MousePosX,[])
}
Add(LineBreakEx,3732314,128,65)
{
Caption="MousePosY"
Type=3
link(_Data,10169:MousePosY,[])
}
Add(LineBreakEx,2529892,440,70)
{
Caption="MousePosX"
Type=2
}
Add(LineBreakEx,4250776,578,69)
{
Caption="MousePosY"
Type=2
}
Add(LineBreakEx,11547312,447,134)
{
Caption="MousePosX"
Type=2
}
Add(LineBreakEx,13592720,585,142)
{
Caption="MousePosY"
Type=2
}
Add(LineBreak,11397827,135,50)
{
Caption="HPos"
Type=1
link(Data,10169:HPos,[])
Primary=[1551074,319,100]
}
Add(LineBreak,11944999,142,35)
{
Caption="VPos"
Type=1
link(Data,10169:VPos,[])
Primary=[6180246,450,123]
}
Add(LineBreak,12461294,710,117)
{
Caption="SetHPos"
link(Out,10169:SetHPos,[(774,123)(774,127)])
Primary=[5460397,-197,61]
}
Add(LineBreak,5079542,711,132)
{
Caption="SetVPos"
link(Out,10169:SetVPos,[(774,138)(774,134)])
Primary=[11649549,-90,53]
}
Add(Hub,3776936,486,178)
{
link(onEvent1,5460397:In,[])
link(onEvent2,5833451:doCalc,[])
}
Add(LineBreak,12107985,305,129)
{
Caption="FlgMoveOff"
link(Out,10082064:doReset,[(382,135)(382,140)])
Primary=[5452103,-264,-1]
}
Add(LineBreak,1699740,305,144)
{
Caption="FlgMoveOn"
link(Out,10082064:doOn,[(382,150)(382,147)])
Primary=[1878410,45,-42]
}
END_SDK
END_SDK
карма: 1
0