Виндоус 7. На стареньком ХР все нормально, подключается без спроса...
Вот записал видео с экрана:
https://disk.yandex.ru/i/wek3ICZni4LxZg
схема. (заморочено потому что пытаюсь сделать зум в центр области, коряво получается)
Add(ChildPanel,10900016,336,119)
{
}
BEGIN_SDK
Add(EditMulti,14464218,21,21)
{
WorkCount=4
VarCount=5
link(doWork1,16220859:doWidth,[(88,27)(88,90)])
link(doWork2,16220859:doHeight,[(81,34)(81,97)])
link(doWork3,16220859:doLeft,[(81,41)(81,111)])
link(doWork4,16220859:doTop,[(81,48)(81,118)])
link(Var1,16220859:Handle,[(27,165)(153,165)])
link(Var2,16220859:Height,[(34,181)(167,181)])
link(Var3,16220859:Width,[(41,172)(160,172)])
link(Var4,16220859:Left,[(48,171)(174,171)])
link(Var5,16220859:Top,[(55,171)(181,171)])
}
Add(Panel,15884365,35,105)
{
Left=5
Top=5
Width=320
Height=320
}
Add(Image,16220859,140,70)
{
Left=-355
Top=-230
Width=1024
Height=768
Color=-16777215
TabOrder=-1
Ctl3D=0
ViewStyle=4
Point(Handle)
Point(doWidth)
Point(doHeight)
Point(Width)
Point(Height)
Point(doRefresh)
Point(doLeft)
Point(doTop)
Point(Left)
Point(Top)
}
END_SDK
Add(Button,12973211,287,189)
{
Left=345
Top=5
Width=80
Height=50
Caption="Настройки изображения"
link(onClick,10939137:doWork1,[])
}
Add(ChildForm,10939137,336,189)
{
link(onEvent1,10900016:doWork1,[(382,195)(382,160)(324,160)(324,125)])
link(onEvent2,10900016:doWork2,[(379,202)(379,167)(318,167)(318,132)])
link(onEvent3,10900016:doWork3,[(386,209)(386,174)(324,174)(324,139)])
link(onEvent4,10900016:doWork4,[(386,216)(386,181)(324,181)(324,146)])
link(Data1,10900016:Var1,[])
link(Data2,10900016:Var2,[])
link(Data3,10900016:Var3,[])
link(Data4,10900016:Var4,[])
link(Data5,10900016:Var5,[])
}
BEGIN_SDK
Add(EditMulti,10461703,21,21)
{
EventCount=4
WorkCount=1
DataCount=5
Width=825
Height=634
link(doWork1,2281605:doVisible,[(45,27)(45,188)])
}
Add(MainForm,2281605,70,154)
{
Left=300
Top=50
Width=126
Height=347
Visible=1
Caption=""
BorderStyle=3
Point(doVisible)
}
Add(GetDataEx,14558420,749,539)
{
link(Data,10461703:Data1,[(755,52)(27,52)])
}
Add(Button,15499985,322,546)
{
Left=30
Top=110
Width=60
Caption="On"
link(onClick,6888753:doWork2,[])
}
Add(Button,12936173,322,595)
{
Left=30
Top=135
Width=60
Caption="Off"
link(onClick,11154852:doWork2,[])
}
Add(MathParse,15256830,441,210)
{
MathStr="%2*1.05"
ResultType=0
link(onResult,15266224:doWork2,[])
link(X2,7966982:Var3,[(454,117)])
}
Add(MathParse,8393825,476,168)
{
MathStr="%2*1.05"
ResultType=0
link(onResult,8364022:doWork2,[])
link(X2,8976121:Var3,[(489,96)])
}
Add(Label,14371868,651,210)
{
Left=75
Top=15
Width=28
Height=17
Caption=" "
}
Add(Hub,14524084,560,210)
{
link(onEvent1,14371868:doText,[])
link(onEvent2,10461703:onEvent2,[(721,223)(721,34)])
}
Add(Hub,9779884,560,168)
{
link(onEvent1,10519465:doText,[])
link(onEvent2,10461703:onEvent1,[(713,181)(713,27)])
}
Add(Label,10519465,651,168)
{
Left=25
Top=15
Width=28
Height=17
Caption=" "
}
Add(Button,13218381,175,252)
{
Left=30
Top=70
Width=60
Caption="меньше"
link(onClick,7455605:doEvent1,[])
}
Add(Button,13382661,175,161)
{
Left=30
Top=50
Width=60
Caption="больше"
link(onClick,15886933:doEvent1,[])
}
Add(MathParse,10733361,280,266)
{
MathStr="%2/1.05"
ResultType=0
link(onResult,15266224:doWork3,[(536,272)])
link(X2,7966982:Var2,[])
}
Add(MathParse,15018993,322,259)
{
MathStr="%2/1.05"
ResultType=0
link(onResult,8364022:doWork3,[(550,265)])
link(X2,8976121:Var2,[])
}
Add(Hub,7455605,238,252)
{
OutCount=5
link(onEvent1,5615251:doWork2,[])
link(onEvent2,15018993:doCalc,[])
link(onEvent3,10733361:doCalc,[])
link(onEvent4,13455220:doEvent1,[(266,279)(266,454)])
link(onEvent5,5140493:doWork2,[])
}
Add(HubEx,8364022,546,168)
{
link(onEvent,9779884:doEvent1,[])
}
Add(HubEx,15266224,532,210)
{
link(onEvent,14524084:doEvent1,[])
}
Add(Hub,15886933,238,161)
{
OutCount=5
link(onEvent1,5615251:doWork1,[(431,167)])
link(onEvent2,8393825:doCalc,[])
link(onEvent3,15256830:doCalc,[(353,181)(353,216)])
link(onEvent4,846249:doEvent1,[(425,188)(425,398)])
link(onEvent5,5140493:doWork1,[(417,195)])
}
Add(HubEx,11154852,427,595)
{
link(onEvent,1542261:doDisConnect,[])
}
Add(HubEx,5615251,427,252)
{
Angle=1
link(onEvent,11154852:doWork1,[])
}
Add(HubEx,6888753,413,546)
{
link(onEvent,1050925:doWork1,[(487,552)])
}
Add(HubEx,5140493,413,280)
{
Angle=1
link(onEvent,6888753:doWork1,[])
}
Add(MultiElement,2690291,749,588)
{
link(Data1,14558420:Var2,[])
}
BEGIN_SDK
Add(EditMulti,10976503,21,21)
{
DataCount=1
Width=209
Height=165
}
Add(RGN_Rect,10202853,105,112)
{
link(onCreateRect,13427953:doSetRegion,[])
link(Point1,8688628:Point,[])
link(Point2,4343399:Point,[])
}
Add(RGN_SetToWindow,13427953,154,112)
{
link(Handle,10976503:Data1,[(160,41)(27,41)])
link(Region,10202853:Result,[(167,100)(145,100)(145,153)(111,153)])
}
Add(PointXY,8688628,105,63)
{
X=50
Y=50
}
Add(PointXY,4343399,112,63)
{
X=1024
Y=768
}
Add(Timer,10652520,63,112)
{
Interval=100
AutoStop=1
link(onTimer,10202853:doCreateRect,[])
}
END_SDK
Add(InfoTip,13328299,735,567)
{
Info=#11:Регион окна|
Height=60
}
Add(GetDataEx,7966982,287,112)
{
Angle=3
link(Data,10461703:Data2,[(34,117)])
}
Add(GetDataEx,8976121,329,91)
{
Angle=3
link(Data,10461703:Data3,[(41,96)])
}
Add(Label,11100692,889,161)
{
Left=60
Top=15
Width=11
Height=17
Caption="X"
}
Add(Timer,6008486,217,588)
{
Interval=200
AutoStop=1
link(onTimer,1050925:doWork2,[])
}
Add(GetDataEx,3978915,497,357)
{
Angle=3
link(Data,10461703:Data4,[(48,362)])
}
Add(GetDataEx,13139739,546,350)
{
Angle=3
link(Data,10461703:Data5,[(55,355)])
}
Add(Hub,846249,448,392)
{
link(onEvent1,5072350:doCalc,[(476,398)(476,391)])
link(onEvent2,2045099:doCalc,[])
}
Add(Hub,13455220,448,448)
{
link(onEvent1,15238271:doCalc,[])
link(onEvent2,15319240:doCalc,[])
}
Add(HubEx,8974717,739,385)
{
Angle=3
link(onEvent,10461703:onEvent3,[(743,41)])
}
Add(HubEx,13739279,764,399)
{
Angle=3
link(onEvent,10461703:onEvent4,[(768,48)])
}
Add(MathParse,5072350,490,385)
{
MathStr="%2*1.07"
ResultType=0
link(onResult,8974717:doWork2,[])
link(X2,3978915:Var2,[])
}
Add(MathParse,2045099,539,399)
{
MathStr="%2*1.07"
ResultType=0
link(onResult,13739279:doWork2,[])
link(X2,13139739:Var2,[])
}
Add(MathParse,15238271,504,448)
{
MathStr="%2/1.07"
ResultType=0
link(onResult,8974717:doWork3,[(743,454)])
link(X2,3978915:Var3,[(517,362)])
}
Add(MathParse,15319240,553,455)
{
MathStr="%2/1.07"
ResultType=0
link(onResult,13739279:doWork3,[(768,461)])
link(X2,13139739:Var3,[(566,355)])
}
Add(HubEx,1050925,483,588)
{
link(onEvent,1542261:doConnect,[])
}
Add(WebCam,1542261,532,588)
{
link(WinHandle,14558420:Var1,[(552,544)])
}
END_SDK
Редактировалось 6 раз(а), последний 2021-04-08 16:34:08