Вверх ↑
Ответов: 207
Рейтинг: 14
#1: 2021-03-15 01:26:17 ЛС | профиль | цитата
Как-то так.

Add(MainForm,191514,329,126)
{
Width=473
Height=708
}
Add(ChildScrollBox,5528897,406,126)
{
}
BEGIN_SDK
Add(EditMulti,15198487,21,21)
{
Width=790
Height=508
}
Add(ScrollBox,3876251,84,70)
{
Width=457
Height=669
Align=5
}
Add(ChildPanelRush,15609470,378,70)
{
Mode=1
link(1,15609470:##eventIndex,[(384,58)(388,58)(388,114)(391,114)])
link(onEvent2,6661176:doEvent1,[(417,90)(417,195)])
link(X3,15609470:##count,[(391,54)(405,54)(405,110)(398,110)])
}
BEGIN_SDK
Add(EditMultiEx,8253668,21,21)
{
WorkCount=#5:##add|0:|
EventCount=#6:##add1|7:7nClick|8:onEvent2|
VarCount=#7:##index|12:##eventIndex|7:##count|
DataCount=#1:1|2:X3|
Width=1140
Height=809
Point(##add)
Point(##index)
Point(##eventIndex)
Point(##count)
link(##add,3763607:doEvent1,[(196,27)(196,90)])
}
Add(Random,16111785,504,70)
{
Quality=1
Point(doRandomWithoutRepeats)
link(onRandom,9953701:doText,[])
}
Add(Label,9953701,742,70)
{
Left=170
Top=70
Color=15780518
Point(doVisible)
Point(doFont)
}
Add(Timer,2155727,371,91)
{
link(onTimer,857837:doEvent1,[])
}
Add(Label,3208174,602,161)
{
Left=25
Top=20
Width=37
Height=20
Color=15780518
Font=[MS Sans Serif,10,1,0,1]
Caption=""
link(Text,9784750:Var,[])
}
Add(Hub,857837,420,91)
{
link(onEvent1,16111785:doRandomWithoutRepeats,[])
}
Add(Button,2889659,140,413)
{
Left=295
Top=60
Caption="вверх"
link(onClick,13243961:doCalc,[])
}
Add(Button,6957222,140,343)
{
Left=295
Top=85
Caption="вниз"
link(onClick,378256:doCalc,[])
}
Add(LineBreak,13509223,56,77)
{
Caption="index"
Type=1
link(Data,8253668:1,[(62,68)(27,68)])
Primary=[9784750,546,28]
}
Add(Hub,3763607,280,84)
{
OutCount=3
link(onEvent1,15305300:doWork1,[(354,90)(354,244)(634,244)])
link(onEvent2,2155727:doTimer,[])
link(onEvent3,3390626:In,[])
}
Add(LineBreak,3668835,532,161)
{
link(Out,3208174:doText,[])
Primary=[3390626,-217,-63]
}
Add(PanelRush,7263752,196,175)
{
Left=10
Top=20
Width=410
Height=135
Layout="parent.grd1"
ColorFrom=15780518
Alpha=0
Glyphs=[]
RoundWidth=5
RoundHeight=5
Point(Handle)
Point(doUpdate)
Point(doTop)
Point(doLeft)
Point(onSetFocus)
Point(Top)
Point(Height)
}
Add(Hub,1358345,756,294)
{
link(onEvent1,7263752:doTop,[(781,300)(781,237)(165,237)(165,195)])
link(onEvent2,8253668:onEvent2,[(788,307)(788,41)])
}
Add(MathParse,378256,238,343)
{
MathStr="%1 + %2 + 21"
link(onResult,1135699:doEvent1,[])
link(X1,14390002:Var3,[(244,257)])
link(X2,11026054:Var2,[])
}
Add(MathParse,13243961,203,413)
{
MathStr="%1 - %2 - 21"
link(onResult,4127338:doCompare,[])
link(X1,14390002:Var2,[])
link(X2,235950:Var2,[])
}
Add(HubEx,5968288,371,350)
{
link(onEvent,15305300:doWork2,[(627,356)(627,300)])
}
Add(GetDataEx,14390002,203,252)
{
link(Data,7263752:Top,[])
}
Add(GetDataEx,235950,210,238)
{
link(Data,7263752:Height,[])
}
Add(HubEx,15305300,630,294)
{
link(onEvent,1358345:doEvent1,[])
}
Add(If_else,4127338,259,413)
{
Type=4
Op2=Integer(0)
link(onTrue,5968288:doWork3,[(375,419)])
}
Add(MathParse,15749606,336,287)
{
MathStr="%1 * %2"
link(X1,11026054:Var3,[(342,271)])
link(X2,8253668:X3,[(349,166)(34,166)])
}
Add(GetDataEx,11026054,245,266)
{
link(Data,235950:Var3,[(251,243)])
}
Add(If_else,9087562,329,350)
{
Type=3
link(onTrue,5968288:doWork2,[])
link(Op2,15749606:Result,[])
}
Add(Hub,1135699,287,343)
{
link(onEvent1,15749606:doCalc,[(312,349)(312,293)])
link(onEvent2,9087562:doCompare,[])
}
END_SDK
Add(Button,5887179,119,175)
{
Left=360
Top=600
Caption="add"
link(onClick,8397840:doEvent1,[])
}
Add(Hub,8397840,203,175)
{
link(onEvent1,15609470:##add,[(228,181)(228,76)])
link(onEvent2,8129892:doWork2,[])
}
Add(VBoxLayout,861284,602,182)
{
Name="grd1"
Space=20
Padding=10
Point(doSort)
}
Add(Hub,6661176,525,189)
{
link(onEvent1,861284:doSort,[])
link(onEvent2,8129892:doWork3,[(571,202)])
}
Add(HubEx,8129892,567,182)
{
link(onEvent,861284:doResize,[])
}
END_SDK

--- Добавлено в 2021-03-15 01:28:36

hin4 писал(а):
как это правильно сделать?

Не знаю на сколько это правильно.
карма: 2

2
Голосовали:flint2, hin4
Редактировалось 1 раз(а), последний 2021-03-15 01:28:36