Накидал такой вот примерчик реализации, но кажется мне, что он может подвести.
code_29012.txt
Может есть более простой и более действенный вариант?
------------ Дoбавленo в 08.49:
Прибрался и убрал лишнее
Add(MainForm,2953706,315,224)
{
Width=431
Height=310
Position=1
}
Add(StringTableMT,3798898,623,168)
{
Left=160
Top=10
Width=145
Height=240
Columns=#8:Колонка1|
IconsCheck=[]
MiscIcons=[]
Icons=[]
Point(onChange)
Point(doReplace)
link(onChange,14780221:doChangeTo,[])
}
Add(RadioButton,4312249,770,133)
{
Left=320
Top=20
Width=85
Caption="Добавление"
}
Add(RadioButton,13790584,770,182)
{
Left=320
Top=75
Width=85
Caption="Очистка"
}
Add(Button,7349952,441,175)
{
Left=10
Top=100
Width=120
Caption="Событие: очистка"
link(onClick,4012338:doClearTo,[])
}
Add(RadioButton,15553635,770,231)
{
Left=320
Top=50
Width=85
Caption="Удаление"
}
Add(Button,269204,441,217)
{
Left=10
Top=65
Width=120
Caption="Событие: удаление"
Data=Integer(0)
link(onClick,4012338:doDeleteTo,[(503,223)(503,188)])
}
Add(MultiElementEx,4012338,532,168)
{
link(onInsertTo,3798898:doAdd,[])
link(onClearTo,3798898:doClear,[])
link(onDeleteTo,3798898:doDelete,[])
link(onReplaceTo,3798898:doReplace,[(580,195)(580,209)])
}
BEGIN_SDK
Add(EditMultiEx,14450334,21,21)
{
WorkCount=#10:doInsertTo|9:doClearTo|10:doDeleteTo|11:doReplaceTo|
EventCount=#10:onInsertTo|9:onClearTo|10:onDeleteTo|11:onReplaceTo|
VarCount=#8:ActionTo|
Width=384
link(doInsertTo,6832762:doWork1,[(73,27)(73,27)])
link(doClearTo,6832762:doWork2,[(53,34)(62,34)(62,36)(62,36)])
link(doDeleteTo,6832762:doWork3,[(61,41)(61,62)])
link(doReplaceTo,6832762:doWork4,[(53,48)(53,69)])
link(ActionTo,3819410:Value1,[(27,169)(174,169)])
}
Add(MT_MultiMem,3819410,168,105)
{
Count=1
link(onData,9821425:doEvent,[(216,111)(216,48)])
}
Add(IndexToChanel,9821425,231,42)
{
Count=4
Point(Data)
link(onEvent1,14450334:onInsertTo,[(316,27)])
link(onEvent2,14450334:onClearTo,[(321,34)])
link(onEvent3,14450334:onDeleteTo,[(326,41)])
link(onEvent4,14450334:onReplaceTo,[(326,48)])
link(Data,6832762:Data,[(237,30)(163,30)(163,86)(90,86)])
}
Add(ChanelToIndex,6832762,84,42)
{
Count=4
Point(Data)
link(onIndex,3819410:doValue,[(142,48)(142,111)])
}
END_SDK
Add(MultiElementEx,14780221,686,175)
{
link(Action-in,4012338:ActionTo,[(686,147)(657,235)(538,235)])
link(onInsertChange,4312249:doSelect,[(744,181)(744,139)])
link(onClearChange,13790584:doSelect,[])
link(onDeleteChange,15553635:doSelect,[(744,195)(744,237)])
}
BEGIN_SDK
Add(EditMultiEx,3548970,21,21)
{
WorkCount=#10:doChangeTo|
EventCount=#14:onInsertChange|13:onClearChange|14:onDeleteChange|15:onReplaceChange|
DataCount=#9:Action-in|
link(doChangeTo,10431933:doEvent,[(67,27)(67,97)])
}
Add(IndexToChanel,10431933,119,91)
{
Count=4
Data=Integer(1)
Point(Index)
link(onEvent1,3548970:onInsertChange,[(236,97)(236,27)])
link(onEvent2,3548970:onClearChange,[(236,104)(236,34)])
link(onEvent3,3548970:onDeleteChange,[(236,111)(236,41)])
link(onEvent4,3548970:onReplaceChange,[(236,118)(236,48)])
link(Index,3548970:Action-in,[(125,56)(27,56)])
}
END_SDK
Add(Button,27469,441,133)
{
Left=10
Top=35
Width=120
Caption="Событие: добавление"
Data=String(Строка)
link(onClick,4012338:doInsertTo,[(503,139)(503,174)])
}