Вверх ↑
Ответов: 62
Рейтинг: 0
#1: 2017-01-09 10:36:28 ЛС | профиль | цитата
При изменении колесом мыши zoom в PainBox обрезается рисунок, хотя сам размер PainBox больше. Подскажите , как исправить. Спасибо.[scroll=]
Add(TrackBar,12629519,644,154)
{
Left=340
Top=395
Width=230
Height=15
Visible=1
Min=1
Position=1
ThumbLength=10
Point(doSetFocus)
link(onPosition,8296383:doEvent1,[])
}
Add(MainForm,15261923,238,273)
{
Left=20
Top=105
Width=1317
Height=595
Ctl3D=0
WinStyle=3
WindowsState=2
MouseCapture=0
Position=1
Point(MouseX)
Point(MouseY)
Point(onResize)
Point(Handle)
Point(onMouseMove)
link(onCreate,16299401:doEvent1,[])
link(onMouseMove,13233314:In,[])
}
Add(GL_Main,12986311,462,287)
{
Color=12639424
TwoSide=0
link(onInit,12198675:doInit,[])
link(onViewPort,3410847:doPerspective,[])
link(Handle,5517251:Handle,[])
}
Add(Timer,9506849,392,336)
{
Interval=10
Enable=1
link(onTimer,1049454:doEvent1,[])
}
Add(GL_GTools,771925,497,336)
{
Point(doClear)
Point(doPushMatrix)
Point(doPopMatrix)
}
Add(Hub,1049454,434,336)
{
OutCount=6
link(onEvent1,771925:doClear,[])
link(onEvent2,771925:doPushMatrix,[])
link(onEvent3,8079493:doRotate,[(465,356)(465,398)])
link(onEvent4,771925:doPopMatrix,[(486,363)(486,356)])
link(onEvent5,12986311:doFlip,[(455,370)(455,307)])
}
Add(Hub,16299401,357,287)
{
OutCount=5
link(onEvent1,12986311:doInit,[])
link(onEvent2,12986311:doViewPort,[])
link(onEvent3,8428433:In,[])
link(onEvent4,12473697:In,[])
link(onEvent5,9506849:doTimer,[(385,321)(385,342)])
}
Add(GL_Perspective,3410847,511,294)
{
Aspect=2
Fovy=30
}
Add(GL_Point3D,7772462,728,238)
{
Y=1
Z=1
}
Add(GL_Options,15876912,637,287)
{
link(onEvent,13370757:doEnabled,[])
}
Add(GL_Rotate,8079493,567,392)
{
Angle=30
Y=200
link(onRotate,858408:doTranslate,[])
link(Angle,3291853:Position,[])
}
Add(TrackBar,3291853,567,343)
{
Left=70
Top=380
Width=15
Height=175
Max=360
Position=30
Kind=1
ThumbLength=10
link(onPosition,3291853:doPosition2,[(610,349)(610,332)(555,332)(555,356)])
}
Add(PaintBox,5517251,455,154)
{
Left=115
Top=5
Width=1325
Height=555
Color=16777215
Ctl3D=0
Layout="horiz1"
Point(Handle)
Point(MouseX)
Point(MouseY)
Point(doSendToBack)
Point(doBringToFront)
Point(onMouseWheel)
Point(onMouseMove)
Point(onMouseDown)
Point(onMouseUp)
link(onMouseMove,12629519:doSetFocus,[])
link(onMouseDown,15176481:doCompare,[(503,181)(503,97)])
link(onMouseUp,659226:doStop,[(561,188)(561,104)])
}
Add(GL_Point3D,10506615,1085,462)
{
link(X,7416995:Part1,[])
link(Y,7416995:Part2,[])
link(Z,7416995:Part3,[])
}
Add(GL_Point3D,5206949,1106,462)
{
link(X,7416995:Part4,[])
link(Y,7416995:Part5,[])
link(Z,7416995:Part6,[])
}
Add(Gl_Translate,858408,616,392)
{
X=-3
Y=-1.2
link(onTranslate,5852894:doDraw,[])
}
Add(Gl_Scale,683218,714,392)
{
X=0.001
Y=0.001
Z=0.001
link(onScale,9392691:doColor,[])
link(X,15114739:Var1,[(720,369)])
link(Y,15114739:Var2,[])
link(Z,15114739:Var3,[(734,369)])
}
Add(StrList,2315546,1015,308)
{
Strings=#19:0/60/580/2000/0/580|18:0/76/600/2000/60/0|22:0/2400/600/2000/2384/0|18:0/2384/600/16/76/0|23:1984/2384/600/2000/76/0|
}
Add(ArrayEnum,12642073,1029,399)
{
link(onItem,7416995:doSplit,[])
link(Array,2315546:Array,[])
}
Add(GL_GluTools,12198675,553,287)
{
Texture=0
link(onInit,5809249:doEnabled,[])
}
Add(GL_Options,5809249,595,287)
{
Flag=2
link(onEvent,15876912:doEnabled,[])
}
Add(GL_Cube2,15959241,1092,546)
{
link(Point1,10506615:Point3D,[(1098,520)(1091,520)])
link(Point2,5206949:Point3D,[(1105,520)(1112,520)])
}
Add(MultiStrPart,7416995,1085,399)
{
Char="/"
Count=6
link(onSplit,15959241:doDraw,[(1195,405)(1195,593)(1060,593)(1060,552)])
}
Add(GL_Color,9392691,777,392)
{
Color=12632256
link(onColor,15952797:doEvent,[])
}
Add(GL_Light,14665421,728,287)
{
Ambient=8421504
Diffuse=12632256
Specular=8388608
link(onEnabled,14665421:doMove,[(780,293)(780,332)(718,332)(718,300)])
link(Point,7772462:Point3D,[])
}
Add(GL_Options,13370757,679,287)
{
Flag=1
link(onEvent,14665421:doEnabled,[])
}
Add(LineBreak,12757493,861,315)
{
Caption="1"
link(Out,16564429:doEvent1,[])
Primary=[8428433,-462,-14]
}
Add(ChildGroupBox,10286362,945,315)
{
link(onEvent1,2411833:doNext,[(991,321)(991,301)(828,301)(828,349)])
}
BEGIN_SDK
Add(EditMulti,16371112,0,0)
{
EventCount=3
WorkCount=1
Width=790
Height=354
}
Add(GroupBox,11651533,35,105)
{
Top=5
Width=113
Height=365
Color=-16777192
Ctl3D=0
Layout="parent.horiz1"
HeightScale=30
Caption=""
}
Add(Button,14369264,700,7)
{
Left=10
Top=290
Width=80
Height=40
link(onClick,16371112:onEvent1,[(761,13)(761,6)])
}
END_SDK
Add(Gl_Axis,5852894,665,392)
{
link(onDraw,683218:doScale,[])
}
Add(Math,11205482,644,203)
{
OpType=3
Op2=1000
link(Op1,12629519:Position,[])
}
Add(Hub,8296383,693,154)
{
link(onEvent1,12629519:doPosition2,[(720,160)(720,136)(632,136)(632,167)])
link(onEvent2,11205482:doOperation,[(720,167)(720,195)(632,195)(632,209)])
}
Add(LineBreak,15562629,644,245)
{
Caption="Масштаб"
Type=1
link(Data,11205482:Result,[])
Primary=[5416912,77,98]
}
Add(GetDataEx,15114739,721,364)
{
link(Data,5416912:Var,[])
}
Add(LineBreak,13053577,595,154)
{
Caption="2"
link(Out,12629519:doPosition,[])
Primary=[12473697,-196,154]
}
Add(Hub,16564429,917,315)
{
InCount=2
OutCount=1
link(onEvent1,10286362:doWork1,[])
}
Add(LineBreak,15265230,861,322)
{
Caption="3"
link(Out,16564429:doEvent2,[])
Primary=[13233314,-567,-21]
}
Add(Label,14672857,525,224)
{
Left=5
Top=425
Width=65
Height=30
}
Add(If_else,15176481,518,91)
{
Op1=Integer(0)
link(onTrue,659226:doTimer,[])
}
Add(Timer,659226,574,91)
{
Interval=10
Enable=1
link(onTimer,327499:doStrCat,[(620,97)(620,203)(457,203)(457,230)])
}
Add(GL_PolygonMode,2724116,910,399)
{
Side=2
Mode=1
link(onPolygonMode,2128545:doWork2,[])
}
Add(GL_PolygonMode,6287378,910,357)
{
Side=2
Mode=2
link(onPolygonMode,2128545:doWork1,[(963,363)])
}
Add(Counter,2411833,840,343)
{
Max=1
}
Add(IndexToChanel,15952797,840,392)
{
Point(Index)
link(onEvent1,6287378:doPolygonMode,[(883,398)(883,363)])
link(onEvent2,2724116:doPolygonMode,[])
link(Index,2411833:Count,[])
}
Add(HubEx,2128545,959,399)
{
link(onEvent,12642073:doEnum,[])
}
Add(StrCat,327499,469,224)
{
link(onStrCat,14672857:doText,[])
link(Str1,5517251:MouseX,[])
link(Str2,5517251:MouseY,[])
}
Add(HBoxLayout,2717337,217,126)
{
Name="horiz1"
Space=3
Padding=3
Layout=""
}


[/scroll]
карма: 0

0