Вверх ↑
Ответов: 2236
Рейтинг: 676
#1: 2020-07-04 09:57:09 ЛС | профиль | цитата
invincidle1 писал(а):
как верно подсоеденить через елемент прорисовки текста.

Схема


Add(MainForm,2695986,168,203)
{
Width=1093
Height=880
Position=1
link(onCreate,11838353:doEvent1,[(226,223)(226,244)])
}
Add(ScrollBar,13654110,763,252)
{
Left=25
Top=260
Width=140
Max=1000
Min=-100
link(onPosition,4321340:doWork3,[(807,258)])
}
Add(ScrollBar,1525466,525,210)
{
Left=25
Top=285
Width=140
Max=1000
Min=-500
link(onPosition,4321340:doWork1,[(807,216)])
}
Add(LineBreakEx,16580438,406,231)
{
Caption="draw"
}
Add(LineBreakEx,15628690,154,245)
{
Caption="draw"
Type=1
link(OnEvent,11838353:doEvent2,[])
}
Add(Hub,11838353,245,238)
{
InCount=2
OutCount=3
link(onEvent1,123921:doClear,[])
link(onEvent2,13701910:doEnum,[(270,251)(270,412)])
link(onEvent3,123921:doRefresh,[(277,258)(277,237)])
}
Add(LineBreakEx,7680699,833,224)
{
Caption="draw"
}
Add(Memo,15334567,343,231)
{
Left=25
Top=20
Width=140
Height=225
Strings=#12:Добрый день.|19:Сегодня будет ясно.|11:Без осадков|
link(onChange,16580438:doWork,[])
}
Add(PaintBox,123921,294,231)
{
Left=200
Top=20
Width=590
Height=770
}
Add(Img_Text,2924064,602,406)
{
X=12
Y=50
Point(X)
Point(Y)
Point(Transform)
link(onDraw,8006174:doOperation,[(649,412)(649,444)(590,444)(590,468)])
link(Bitmap,123921:Bitmap,[(608,388)(300,388)])
link(Text,9719288:Part,[(615,395)(562,395)(562,450)(419,450)])
link(X,15008604:Text,[])
link(Y,8029249:Text,[])
link(Transform,16342343:Transform,[])
}
Add(Str_Enum,9719288,406,406)
{
Delimiter=""
link(onEnum,2924064:doDraw,[])
link(onEndEnum,8467770:doEvent1,[])
}
Add(ArrayEnum,13701910,357,406)
{
link(onItem,9719288:doEnum,[])
link(onEndEnum,734421:doClear,[(394,419)(394,538)])
link(Array,15334567:Array,[])
}
Add(Math,8006174,602,462)
{
Point(doClear)
link(onResult,9197779:doCalc,[(642,468)(642,496)])
link(Op1,2924064:TextWidth,[])
link(Op2,1172648:Var1,[(615,450)(642,450)(642,537)])
}
Add(Img_Text,7708814,350,448)
{
Y=50
link(Text,13701910:Item,[])
}
Add(Math,9703695,476,497)
{
Point(doClear)
link(onResult,734421:doCalc,[(513,503)(513,531)])
link(Op1,7708814:TextHeight,[(482,487)(363,487)])
link(Op2,11581622:Var3,[(489,490)(558,490)(558,565)])
}
Add(Hub,8467770,448,413)
{
link(onEvent1,9197779:doClear,[(582,419)(582,503)])
link(onEvent2,9703695:doOperation,[(472,426)(472,503)])
}
Add(LineBreak,1706542,651,546)
{
Caption="x"
Type=1
link(Data,1172648:Var2,[])
Primary=[6024253,-14,-224]
}
Add(LineBreak,5444118,518,574)
{
Caption="y"
Type=1
link(Data,11581622:Var2,[])
Primary=[2289776,126,-238]
}
Add(GetDataEx,11581622,518,560)
{
link(Data,734421:Result,[])
}
Add(GetDataEx,1172648,651,532)
{
link(Data,9197779:Result,[])
}
Add(Img_UseOffset,16342343,630,364)
{
X=1.53
link(X,6024253:Var,[])
link(Y,2289776:Var,[])
}
Add(MathParse,9197779,651,490)
{
MathStr="%1 + %2 / 100"
Point(doClear)
link(X2,13654110:Position,[(664,483)(769,483)])
}
Add(MathParse,734421,518,525)
{
MathStr="%1 + %2 / 100"
Point(doClear)
link(X2,1525466:Position,[])
}
Add(HubEx,4321340,803,224)
{
link(onEvent,7680699:doWork,[])
}
Add(Edit,15008604,616,224)
{
Left=60
Top=310
Text="10"
link(onChange,14667545:doWork2,[])
}
Add(Edit,8029249,623,259)
{
Left=60
Top=340
Text="50"
link(onChange,14667545:doWork3,[(690,265)])
}
Add(Label,11255565,574,224)
{
Left=35
Top=315
Width=11
Height=17
Caption="X"
}
Add(Label,10601649,581,259)
{
Left=35
Top=345
Width=11
Height=17
Caption="Y"
}
Add(HubEx,14667545,686,224)
{
link(onEvent,4321340:doWork2,[])
}

карма: 11

0