sla8a писал(а):
Как вариантВы снова меня спасаете. Безгранично благодарен.
--- Добавлено в 2020-07-03 22:47:46
sla8a писал(а):
Как вариантВариант отличный, Но я не могу сообразить как верно подсоеденить через елемент прорисовки текста.
Add(MainForm,2695986,308,182)
{
Width=1093
Height=880
Position=1
}
Add(ScrollBar,13654110,588,210)
{
Left=25
Top=260
Width=140
Max=1000
Min=-100
link(onPosition,10509332:doWork2,[])
}
Add(ScrollBar,1525466,595,280)
{
Left=25
Top=285
Width=140
Max=1000
Min=-500
link(onPosition,10509332:doWork3,[(653,286)])
}
Add(MultiElementEx,5092615,574,350)
{
link(WordInterval,13654110osition,[])
link(StringInterval,1525466osition,[])
}
BEGIN_SDK
Add(EditMultiEx,8766967,21,21)
{
WorkCount=#6:doDraw|
DataCount=#6:Bitmap|4:Text|34:WordInterval=Межбуквенный интервал|36:StringInterval=Межстроковой интервал|
Width=713
Height=585
link(doDraw,263065:doEvent1,[(30,27)(30,230)])
}
Add(Img_Text,3343235,427,231)
{
Y=50
Point(X)
Point(Y)
Point(Transform)
link(onDraw,11206229:doOperation,[(471,237)(471,270)(408,270)(408,293)])
link(Bitmap,8766967:Bitmap,[(433,42)(27,42)])
link(Text,9442982art,[(440,210)(266,210)(266,275)(237,275)])
link(Transform,13761275:Transform,[])
}
Add(Str_Enum,9442982,224,231)
{
Delimiter=""
link(onEnum,3343235:doDraw,[])
link(onEndEnum,5741663:doEvent1,[])
}
Add(ArrayEnum,16511783,175,231)
{
link(onItem,9442982:doEnum,[])
link(onEndEnum,3745760:doClear,[(212,244)(212,468)])
link(Array,10986927:Array,[])
}
Add(Math,11206229,420,287)
{
Point(doClear)
link(onResult,2166251:doCalc,[(492,293)(492,321)])
link(Op1,2574425:Var1,[(426,275)(464,275)(464,362)])
link(Op2,3343235:TextWidth,[])
}
Add(Img_Text,14714162,168,273)
{
Y=50
Point(X)
Point(Y)
link(Text,16511783:Item,[])
}
Add(Math,2345606,497,427)
{
Point(doClear)
link(onResult,3745760:doCalc,[(534,433)(534,461)])
link(Op1,1951181:Var1,[(503,415)(451,415)(451,495)])
link(Op2,14714162:TextHeight,[(510,401)(181,401)])
}
Add(Hub,5741663,273,238)
{
link(onEvent1,2166251:doClear,[(325,244)(325,328)])
link(onEvent2,2345606:doOperation,[(305,251)(305,433)])
}
Add(StrList,10986927,161,175)
{
MakeExt(Strings,Текст для рисования,Text)
}
Add(Hub,263065,84,224)
{
link(onEvent1,15973981:doData,[(112,230)(112,202)])
link(onEvent2,16511783:doEnum,[])
}
Add(DoData,15973981,119,196)
{
link(onEventData,10986927:doText,[])
link(Data,8766967:Text,[(125,63)(34,63)])
}
Add(LineBreak,4098335,497,371)
{
Caption="x"
Type=1
link(Data,2574425:Var2,[])
Primary=[15014885,-35,-224]
}
Add(LineBreak,2718335,539,504)
{
Caption="y"
Type=1
link(Data,1951181:Var2,[])
Primary=[8828915,-70,-343]
}
Add(GetDataEx,1951181,539,490)
{
link(Data,3745760:Result,[])
}
Add(GetDataEx,2574425,497,357)
{
link(Data,2166251:Result,[])
}
Add(Img_UseOffset,13761275,455,189)
{
X=1.53
link(X,15014885:Var,[])
link(Y,8828915:Var,[])
}
Add(MathParse,2166251,497,315)
{
MathStr="%1 + %2 / 100"
Point(doClear)
link(X2,8766967:WordInterval,[(510,35)(41,35)])
}
Add(MathParse,3745760,539,455)
{
MathStr="%1 + %2 / 100"
Point(doClear)
link(X2,8766967:StringInterval,[(552,27)(48,27)])
}
END_SDK
Add(Img_TextInRect,9803594,392,378)
{
Point1=3276850
Point2=6553700
Point2AsOffset=0
Font=[Calibri,12,1,0,204]
Text="Бокс свойств и способностей"
OffsetLeft=2
OffsetRight=2
OffsetTop=2
OffsetBottom=2
AlignHorizon=2
Alignvertical=2
Ellipsis=0
Point(Transform)
link(Bitmap,123921:Bitmap,[(398,324)(538,324)])
link(Text,15334567:Text,[])
}
Add(LineBreakEx,16580438,448,259)
{
Caption="draw"
}
Add(LineBreakEx,15628690,168,238)
{
Caption="draw"
Type=1
link(OnEvent,11838353:doEvent1,[])
}
Add(Hub,11838353,259,238)
{
OutCount=3
link(onEvent1,123921:doRefresh,[])
link(onEvent2,9803594:doDraw,[(333,251)(333,384)])
link(onEvent3,123921:doClear,[(403,258)(403,251)])
}
Add(LineBreakEx,7680699,679,210)
{
Caption="draw"
}
Add(HubEx,10509332,649,210)
{
link(onEvent,7680699:doWork,[])
}
Add(Memo,15334567,399,259)
{
Left=25
Top=20
Width=140
Height=225
link(onChange,16580438:doWork,[])
}
Add(PaintBox,123921,532,238)
{
Left=200
Top=20
Width=590
Height=770
link(onBeforeDraw,5092615:doDraw,[(569,244)(569,356)])
}