Add(MainForm,11788041,336,329)
{
Width=479
Height=417
Position=1
Point(SizeHeader)
Point(Handle)
Point(doSendToBack)
Point(doBringToFront)
}
Add(Button,7184611,147,378)
{
Width=463
Align=2
Caption="Вырезать"
link(onClick,1712484:doEvent1,[])
}
Add(Image,3179763,336,385)
{
Top=20
Width=463
Height=358
Align=5
Color=16777215
}
Add(Hub,1712484,203,378)
{
link(onEvent1,11788041:doSendToBack,[(228,384)(228,363)])
link(onEvent2,5508976:doWork1,[])
}
Add(ChildForm,5508976,238,385)
{
link(onEvent1,2186279:doEvent1,[])
}
BEGIN_SDK
Add(EditMulti,987769,21,21)
{
EventCount=1
WorkCount=1
Width=1077
Height=564
link(doWork1,6757584:doEvent1,[(74,27)(74,76)])
}
Add(MainForm,5179513,273,210)
{
Align=5
Visible=1
BorderStyle=0
Point(doWidth)
Point(doHeight)
Point(doVisible)
}
Add(ScreenShort,4529928,175,70)
{
link(onCapture,7956552:doEvent1,[])
link(Handle,7983328:Value,[])
}
Add(Hub,6757584,77,70)
{
OutCount=5
link(onEvent1,4529928:doCapture,[])
link(onEvent2,13915281:doData,[(137,83)(137,202)])
link(onEvent3,3287052:doData,[(130,90)(130,230)])
link(onEvent4,10332740:doWork1,[(109,97)])
link(onEvent5,10063086:doTimer,[(102,104)(102,398)])
}
Add(Memory,7983328,175,28)
{
Default=Integer(0)
}
Add(Image,9543904,364,133)
{
Top=20
Width=463
Height=358
Align=5
Color=16777215
link(Bitmap,8478335:Var2,[])
}
Add(Timer,10063086,126,392)
{
Interval=100
Enable=1
link(onTimer,1211224:doEvent1,[])
}
Add(Keyboard,5470852,217,399)
{
Key=1
link(onReadKey,8341088:doEvent1,[])
}
Add(IndexToChanel,5304455,336,406)
{
link(onEvent1,3534223:doEvent1,[])
link(onEvent2,9610324:doValue,[(375,419)(375,265)])
}
Add(ChangeMon,9840715,294,406)
{
Data=Integer(0)
link(onData,5304455:doEvent,[])
}
Add(MouseEvent,11503216,567,175)
{
Point(Handle)
}
Add(Screen,10393990,147,147)
{
}
Add(DoData,13915281,147,196)
{
link(onEventData,5179513:doWidth,[(249,202)(249,244)])
link(Data,10393990:Width,[])
}
Add(DoData,3287052,189,224)
{
link(onEventData,5179513:doHeight,[(242,230)(242,251)])
link(Data,10393990:Height,[(195,187)(160,187)])
}
Add(Hub,3534223,399,406)
{
OutCount=4
link(onEvent1,4812601:doCalc,[(424,412)(424,342)])
link(onEvent2,5569383:doCopy,[])
link(onEvent3,5219379:doData,[(438,426)(438,447)])
link(onEvent4,10063086:doStop,[(424,433)(424,447)(123,447)(123,405)])
}
Add(DoData,5219379,448,441)
{
Data=Integer(0)
link(onEventData,10332740:doWork3,[(488,447)(488,492)(109,492)])
}
Add(HubEx,10332740,105,252)
{
link(onEvent,5179513:doVisible,[(111,258)])
}
Add(Memory,9610324,511,259)
{
Point(Data)
link(onData,3475940:doValue,[])
link(Data,8283538:Var1,[(517,222)])
}
Add(Memory,3475940,553,259)
{
Point(Data)
link(Data,14248791:Var1,[(559,229)])
}
Add(MathParse,4812601,602,336)
{
MathStr="abs(%1 - %2)"
link(onResult,13522895:doCalc,[])
link(X1,9215055:Var2,[])
link(X2,6458963:Var2,[])
}
Add(GetDataEx,6093459,511,301)
{
link(Data,9610324:Value,[])
}
Add(GetDataEx,8283538,567,217)
{
link(Data,11503216:MouseX,[])
}
Add(MathParse,13522895,665,336)
{
MathStr="abs(%1 - %2)"
link(X1,10230451:Var2,[])
link(X2,8979506:Var2,[])
}
Add(GetDataEx,14248791,574,224)
{
link(Data,11503216:MouseY,[])
}
Add(GetDataEx,10802847,518,308)
{
link(Data,3475940:Value,[(524,299)(559,299)])
}
Add(Img_Rectangle,10137405,784,329)
{
LineStyle=3
Point(Point1)
Point(Point2)
link(Bitmap,9543904:ImageBitmap,[(790,250)(370,250)])
link(Point1,11092645:Point,[])
link(Point2,7833549:Point,[(811,292)(846,292)])
}
Add(Hub,1211224,175,392)
{
link(onEvent1,14129593:doEvent2,[(207,398)(207,326)(323,326)(323,146)])
link(onEvent2,5470852:doReadKey,[])
}
Add(PointXY,11092645,798,245)
{
link(X,6458963:Var1,[(804,138)(615,138)])
link(Y,8979506:Var1,[(811,131)(678,131)])
}
Add(PointXY,7833549,840,245)
{
link(X,9215055:Var1,[(846,124)(608,124)])
link(Y,10230451:Var1,[(853,117)(671,117)])
}
Add(GetDataEx,6458963,609,301)
{
Angle=3
link(Data,6093459:Var3,[])
}
Add(GetDataEx,8979506,672,308)
{
Angle=3
link(Data,10802847:Var3,[])
}
Add(GetDataEx,9215055,602,217)
{
Angle=3
link(Data,8283538:Var3,[])
}
Add(GetDataEx,10230451,665,224)
{
Angle=3
link(Data,14248791:Var3,[])
}
Add(Bitmap,3779324,364,70)
{
}
Add(Hub,7956552,301,70)
{
link(onEvent1,3779324:doLoad,[])
link(onEvent2,14129593:doEvent1,[(326,83)(326,139)])
}
Add(Hub,14129593,336,133)
{
InCount=2
OutCount=1
link(onEvent1,9543904:doLoad,[])
}
Add(Img_Copy,5569383,504,413)
{
Point(Width)
Point(Height)
link(onCopy,987769:onEvent1,[(1014,419)(1014,27)])
link(Source,8478335:Var3,[(510,117)])
link(X,6093459:Var2,[])
link(Y,10802847:Var2,[])
link(Width,4812601:Result,[(531,376)(608,376)])
link(Height,13522895:Result,[(538,383)(671,383)])
}
Add(GetDataEx,8478335,364,112)
{
link(Data,3779324:Bitmap,[])
}
Add(Hub,8341088,266,399)
{
link(onEvent1,3681755:doEvent,[(382,405)(382,328)])
link(onEvent2,9840715:doData,[])
}
Add(IndexToChanel,3681755,735,322)
{
link(onEvent2,10137405:doDraw,[])
}
END_SDK
Add(Hub,2186279,294,385)
{
link(onEvent1,3179763:doLoad,[])
link(onEvent2,11788041:doBringToFront,[(319,398)(319,370)])
}
Ответов: 793
Рейтинг: 168
|
|||
prostov, Я тоже что-то намудрил. Работает как ножницы. После нажатия кнопки ЛКМ выделяем копируемую область.
|
|||
карма: 16 |
| ||
Голосовали: | andrestudio, prostov |
Редактировалось 1 раз(а), последний 2022-02-08 20:31:50