Вверх ↑
Ответов: 953
Рейтинг: 34
#1: 2019-02-09 11:46:02 ЛС | профиль | цитата
Странное поведение схемы из примера STRING TABLE MT

Если ее скопировать полностью из рабочего примера и вставить в новый проект по ctrl+V то таблица перестает редактироваться. Я и с русской раскладкой копировал и с английской. Только если сохранить схему как копию, она продолжает работать. Как побороть?


Add(MainForm,14059777,491,209)
{
Left=10
Top=10
Width=420
Height=265
Ctl3D=0
Caption="КАтегории"
Position=1
link(onCreate,8724013:doValue,[])
}
Add(LineBreakEx,6197563,974,608)
{
Caption="Cell"
Type=2
}
Add(MultiElementEx,14516440,1072,482)
{
link(onEvent,8747443:doWork,[])
}
BEGIN_SDK
Add(EditMultiEx,6305113,21,21)
{
WorkCount=#7:doEvent|
EventCount=#7:onEvent|
Width=167
Height=123
link(doEvent,6241665:doEvent,[(35,27)(35,83)])
}
Add(IndexToChanel,6241665,49,77)
{
link(onEvent1,6822189:doData,[(89,83)(89,55)])
link(onEvent2,8827569:doData,[])
}
Add(DoData,6822189,98,49)
{
Data=String(-)
link(onEventData,6076615:doWork1,[(144,55)])
}
Add(HubEx,6076615,140,84)
{
link(onEvent,6305113:onEvent,[(169,90)(169,27)])
}
Add(DoData,8827569,98,84)
{
Data=String(+)
link(onEventData,6076615:doWork2,[])
}
END_SDK
Add(MultiElementEx,866868,974,671)
{
link(OutData,5354186:doData,[(1018,677)(1018,659)(962,659)(962,642)])
link(hLeft,3501412:doLeft,[])
link(hTop,3501412:doTop,[])
link(hWidth,3501412:doWidth,[])
link(Visible,3501412:doVisible,[])
link(BringToFront,3501412:doBringToFront,[])
link(SetData,12464873:doData,[(1025,740)(1025,747)])
link(SetTableFocus,2092162:doWork,[(1022,747)(1022,782)])
}
BEGIN_SDK
Add(EditMultiEx,13264431,21,21)
{
WorkCount=#7:MT_Data|5:KeyUp|7:EscCell|7:onEnter|
EventCount=#7:OutData|5:hLeft|4:hTop|6:hWidth|7:hHeight|7:Visible|8:SetFocus|12:BringToFront|8:Position|7:SetData|13:SetTableFocus|
Width=391
Height=277
link(EscCell,13101722:doWork2,[(48,41)(48,202)])
}
Add(MT_Get,2382797,203,112)
{
}
Add(MT_Get,4670381,203,147)
{
}
Add(MT_Get,12566475,203,77)
{
}
Add(MT_Get,528165,203,42)
{
}
Add(Hub,6220925,91,35)
{
OutCount=5
}
Add(Case,1777653,203,231)
{
Value=Integer(27)
DataOnTrue=Integer(0)
}
Add(DoData,14327129,203,196)
{
Data=Integer(0)
}
Add(Hub,7950987,259,238)
{
}
Add(HubEx,16696880,350,196)
{
Angle=3
}
Add(HubEx,13101722,154,196)
{
}
Add(DoData,11234906,144,63)
{
Data=Integer(0)
}
Add(Hub,15492628,98,168)
{
link(onEvent2,13101722:doWork1,[(158,181)])
}
END_SDK
Add(LineBreakEx,3516870,1023,286)
{
Caption="SetFocus"
}
Add(Edit,8944797,1023,195)
{
Left=10
Top=260
Width=85
Color=-16777192
Font=[MS Sans Serif,12,1,0,1]
Visible=1
Ctl3D=1
Text=""
Point(doLeft)
Point(doTop)
Point(doWidth)
Point(doHeight)
Point(doVisible)
Point(doSetFocus)
Point(doBringToFront)
Point(onKeyUp)
Point(doPosition)
link(onEnter,10463855:onEnter,[(1067,208)(1067,218)(955,218)(955,229)])
link(Str,1347128:getVar,[])
link(onKeyUp,10463855:KeyUp,[(1067,215)(1067,203)(955,203)(955,215)])
}
Add(MultiElementEx,457242,974,412)
{
link(onEvent2,645625:doCaption,[(1018,418)(1018,502)])
link(onIndex,645625:doCheck,[(1018,425)(1018,453)])
link(Data,1964947:getVar,[])
}
BEGIN_SDK
Add(EditMultiEx,8409850,21,21)
{
WorkCount=#6:doData|
EventCount=#8:onEvent2|7:onIndex|
DataCount=#4:Data|
Height=95
link(doData,11024678:doData,[(35,27)(35,55)])
}
Add(Hub,11564246,91,49)
{
link(onEvent1,13220328:doCase,[])
link(onEvent2,8409850:onEvent2,[(222,62)(222,27)])
}
Add(HubEx,9756245,224,63)
{
link(onEvent,9026172:doWork1,[])
}
Add(ChanelToIndex,9026172,245,63)
{
link(onIndex,8409850:onIndex,[(299,69)(299,34)])
}
Add(DoData,11024678,49,49)
{
link(onEventData,11564246:doEvent1,[])
link(Data,8409850:Data,[(55,35)(27,35)])
}
Add(Case,13220328,140,49)
{
Value=String(False)
link(onNextCase,13489195:doCase,[])
link(onTrue,9756245:doWork2,[(188,62)(188,69)])
}
Add(Case,13489195,182,49)
{
Value=String(True)
link(onNextCase,9756245:doWork1,[(228,55)])
link(onTrue,9026172:doWork2,[(223,62)(223,76)])
}
END_SDK
Add(LineBreakEx,1417514,1086,741)
{
Caption="SetData"
}
Add(StringTableMT,14706494,624,321)
{
Left=10
Top=10
Width=390
Height=190
Font=[MS Sans Serif,12,1,0,1]
Columns=#8:Включить|9:Текст=500|
Flat=1
TabGrid=0
TabGridFrame=0
TableWBreak=0
Gradient=0
HeaderDragDrop=0
TextColor=128
GradientColor=-16777213
IconsCheck=[]
MiscIcons=[]
Icons=[]
StringsStrLst=#29:True;sdfsdf utyuyt popo;aaaaa|18:False;fzsdfzs;bbbb|17:False;sdfszz;cccc|17:True;sdfszz;ddddd|17:True;sdfszz;eeeee|18:False;sdfszz;fffff|18:False;fzsdfzs;gggg|17:False;sdfszz;hhhh|18:True;fzsdfzs;iiiii|18:True;sdfszz;jjjjjj|
AutoTblStrLst=0
Point(Index)
Point(SubItem)
Point(Cell)
Point(doTabGrid)
Point(doTabGridFrame)
Point(doGradient)
Point(doSingleString)
Point(doGradientColor)
Point(GenColors_MT)
Point(onMT_CellClick)
Point(Matrix)
Point(doSetFocus)
Point(onEscCell)
link(onMT_CellClick,3579290:doEvent,[])
link(onEscCell,5492443:doWork,[(687,341)(687,369)])
}
Add(LineBreakEx,2038226,547,531)
{
Caption="SetData"
Type=1
link(OnEvent,7574571:doWrite,[])
}
Add(InfoTip,7316469,841,349)
{
Info=#0:|8:CheckBox|
Font=[MS Sans Serif,12,1,16711680,1]
Frame=3
Width=351
Height=221
}
Add(MultiElementEx,10463855,967,202)
{
link(OutData,8944797:doText2,[])
link(hLeft,8944797:doLeft,[])
link(hTop,8944797:doTop,[])
link(hWidth,8944797:doWidth,[])
link(hHeight,8944797:doHeight,[])
link(Visible,8944797:doVisible,[])
link(SetFocus,8944797:doSetFocus,[])
link(BringToFront,8944797:doBringToFront,[])
link(Position,8944797:doPosition,[])
link(SetData,12048896:doWork,[(1011,271)(1011,278)])
link(SetTableFocus,3516870:doWork,[(1011,278)(1011,292)])
link(NextEscCell,14836581:doWork,[(1011,285)(1011,306)])
}
BEGIN_SDK
Add(EditMultiEx,4956555,21,21)
{
WorkCount=#7:MT_Data|5:KeyUp|7:EscCell|7:onEnter|
EventCount=#7:OutData|5:hLeft|4:hTop|6:hWidth|7:hHeight|7:Visible|8:SetFocus|12:BringToFront|8:Position|7:SetData|13:SetTableFocus|11:NextEscCell|
Width=391
Height=270
link(MT_Data,7124182:doEvent1,[(56,27)(56,41)])
link(KeyUp,13208398:doCase,[(75,34)(75,237)])
link(EscCell,16665400:doEvent1,[(59,41)(59,139)])
link(onEnter,4767468:doEvent1,[(59,48)(59,195)])
}
Add(MT_Get,3128194,203,112)
{
link(onData,378104:doGet,[(247,118)(247,136)(191,136)(191,153)])
link(onGet,4956555:hWidth,[(280,125)(280,48)])
}
Add(MT_Get,378104,203,147)
{
link(onGet,4956555:hHeight,[(323,160)(323,55)])
}
Add(MT_Get,2894458,203,77)
{
link(onData,3128194:doGet,[(247,83)(247,101)(191,101)(191,118)])
link(onGet,4956555:hTop,[(280,90)(280,41)])
}
Add(MT_Get,5768454,203,42)
{
link(onData,2894458:doGet,[(247,48)(247,66)(191,66)(191,83)])
link(onGet,4956555:hLeft,[(280,55)(280,34)])
}
Add(Hub,7124182,91,35)
{
OutCount=5
link(onEvent1,4956555:OutData,[(250,41)(250,27)])
link(onEvent2,5768454:doGet,[])
link(onEvent3,4956555:SetFocus,[(267,55)(267,69)])
link(onEvent4,4956555:BringToFront,[(267,62)(267,76)])
link(onEvent5,3462728:doData,[])
}
Add(Case,13208398,203,231)
{
Value=Integer(27)
DataOnTrue=Integer(0)
link(onTrue,10281934:doEvent1,[])
}
Add(DoData,13914264,203,196)
{
Data=Integer(0)
link(onEventData,13266866:doWork2,[])
}
Add(Hub,10281934,259,238)
{
link(onEvent1,13266866:doWork3,[(354,244)])
link(onEvent2,4956555:SetTableFocus,[(368,251)(368,97)])
}
Add(HubEx,13266866,350,196)
{
Angle=3
link(onEvent,4956555:Visible,[(354,62)])
}
Add(HubEx,14640009,168,196)
{
link(onEvent,13914264:doData,[])
}
Add(DoData,3462728,144,63)
{
Data=Integer(0)
link(onEventData,4956555:Position,[(294,69)(294,83)])
}
Add(Hub,4767468,98,189)
{
link(onEvent1,4956555:SetData,[(271,195)(271,90)])
link(onEvent2,14640009:doWork2,[])
}
Add(Hub,16665400,98,133)
{
link(onEvent1,14640009:doWork1,[(172,139)])
link(onEvent2,4956555:NextEscCell,[(271,146)(271,104)])
}
END_SDK
Add(Button,10475814,491,272)
{
Left=5
Top=205
Width=75
TabOrder=-1
Caption="TabGrid"
link(onClick,7450025:doSwitch,[])
}
Add(Button,11010609,491,307)
{
Left=85
Top=205
Width=75
TabOrder=-1
Caption="TabGridFrame"
link(onClick,14006697:doSwitch,[])
}
Add(Switch,14006697,540,307)
{
DataOn=Integer(1)
DataOff=Integer(0)
Default=0
link(onSwitch,14706494:doTabGridFrame,[(598,313)(598,369)])
}
Add(Switch,7450025,540,272)
{
DataOn=Integer(1)
DataOff=Integer(0)
Default=0
link(onSwitch,14706494:doTabGrid,[(598,278)(598,362)])
}
Add(Button,4383596,491,342)
{
Left=165
Top=205
Width=75
TabOrder=-1
Caption="Gradient"
link(onClick,11428156:doSwitch,[])
}
Add(Switch,11428156,540,342)
{
DataOn=Integer(1)
DataOff=Integer(0)
Default=0
link(onSwitch,14706494:doGradient,[(598,348)(598,376)])
}
Add(Button,8533939,491,377)
{
Left=325
Top=205
Width=75
TabOrder=-1
Caption="SingleString"
link(onClick,1406174:doSwitch,[])
}
Add(Switch,1406174,540,377)
{
DataOn=Integer(1)
DataOff=Integer(0)
link(onSwitch,14706494:doSingleString,[])
}
Add(Button,6758889,491,412)
{
Left=245
Top=205
Width=75
TabOrder=-1
Caption="GradientColor"
link(onClick,5994120:doOpen,[])
}
Add(MT_MultiMem,8724013,540,223)
{
Count=5
Point(Data)
link(Data,14041054:getVar,[])
}
Add(ColorDialog,5994120,568,412)
{
link(onSelect,14706494:doGradientColor,[(606,418)(606,390)])
link(Color,8724013:Value5,[])
}
Add(LineBreakEx,1964947,974,384)
{
Caption="Cell"
Type=2
}
Add(LineBreakEx,5492443,743,363)
{
Caption="EscCell"
}
Add(LineBreakEx,1347128,1023,167)
{
Caption="Cell"
Type=2
}
Add(LineBreakEx,16159683,652,454)
{
Caption="Cell"
Type=3
link(_Data,14706494:Cell,[])
}
Add(DoData,12464873,1037,741)
{
link(onEventData,1417514:doWork,[])
link(Data,3501412:String,[])
}
Add(CheckBox,645625,1030,447)
{
Left=10
Top=260
Width=85
Color=-16777192
Font=[MS Sans Serif,12,1,0,1]
TabOrder=-1
Point(doLeft)
Point(doTop)
Point(doWidth)
Point(doHeight)
Point(doVisible)
Point(doBringToFront)
Point(onKeyUp)
Point(doCaption)
link(onCheck,3938954:onEnter,[(1074,453)(1074,463)(962,463)(962,474)])
link(onKeyUp,3938954:KeyUp,[(1074,460)(1074,448)(962,448)(962,460)])
}
Add(LineBreakEx,8747443,1121,482)
{
Caption="SetData"
}
Add(LineBreakEx,14041054,540,195)
{
Caption="Gen_Colors"
Type=2
}
Add(DoData,5354186,974,636)
{
link(onEventData,3501412:doSelectString,[(1018,642)(1018,719)])
link(Data,6197563:getVar,[])
}
Add(LineBreakEx,3442475,659,475)
{
Caption="Gen_Colors"
Type=3
link(_Data,14706494:GenColors_MT,[])
}
Add(LineBreakEx,15842762,743,321)
{
Caption="MT_Data_1"
}
Add(MatrixRW,7574571,617,524)
{
link(Matrix,14706494:Matrix,[(623,462)(672,462)])
link(X,2230359:getVar,[])
link(Y,14706494:Index,[])
}
Add(MultiElementEx,3938954,974,447)
{
link(OutData,457242:doData,[(1018,453)(1018,435)(962,435)(962,418)])
link(hLeft,645625:doLeft,[])
link(hTop,645625:doTop,[])
link(hWidth,645625:doWidth,[])
link(hHeight,645625:doHeight,[])
link(Visible,645625:doVisible,[])
link(BringToFront,645625:doBringToFront,[(1018,502)(1018,495)])
link(SetData,14516440:doEvent,[(1041,516)(1041,488)])
link(SetTableFocus,4165332:doWork,[])
link(NextEscCell,6367634:doWork,[(1018,530)(1018,537)])
}
BEGIN_SDK
Add(EditMultiEx,6670785,21,21)
{
WorkCount=#7:MT_Data|5:KeyUp|7:EscCell|7:onEnter|
EventCount=#7:OutData|5:hLeft|4:hTop|6:hWidth|7:hHeight|7:Visible|8:SetFocus|12:BringToFront|8:Position|7:SetData|13:SetTableFocus|11:NextEscCell|
Width=391
Height=263
link(EscCell,341937:doEvent1,[(59,41)(59,139)])
}
Add(MT_Get,8694339,203,112)
{
link(onGet,8134628:doOperation,[])
}
Add(MT_Get,14285633,203,147)
{
link(onGet,14006946:doOperation,[])
}
Add(MT_Get,12519547,203,77)
{
link(onGet,16197283:doOperation,[])
}
Add(MT_Get,8369135,203,42)
{
link(onGet,3620842:doOperation,[])
}
Add(Hub,9923546,91,35)
{
OutCount=5
}
Add(Case,10513571,203,231)
{
Value=Integer(27)
DataOnTrue=Integer(0)
}
Add(DoData,8933014,203,196)
{
Data=Integer(0)
}
Add(Hub,5250665,259,238)
{
}
Add(HubEx,12286953,350,196)
{
Angle=3
}
Add(HubEx,9909078,168,196)
{
}
Add(DoData,16082783,144,63)
{
Data=Integer(0)
}
Add(Hub,11946096,98,189)
{
link(onEvent2,9909078:doWork2,[])
}
Add(Hub,341937,98,133)
{
link(onEvent1,9909078:doWork1,[(172,139)])
}
Add(Math,3620842,256,49)
{
Op2=2
ResultType=0
}
Add(Math,16197283,256,84)
{
Op2=2
ResultType=0
}
Add(Math,8134628,256,119)
{
OpType=1
Op2=4
ResultType=0
}
Add(Math,14006946,256,154)
{
OpType=1
Op2=4
ResultType=0
}
END_SDK
Add(LineBreakEx,3167286,694,293)
{
Caption="SubItem"
Type=2
}
Add(LineBreakEx,1084485,491,447)
{
Caption="SetFocus"
Type=1
link(OnEvent,14706494:doSetFocus,[(609,453)(609,397)])
}
Add(LineBreakEx,4165332,1030,517)
{
Caption="SetFocus"
}
Add(MT_IndexToChanel,3579290,694,328)
{
Count=3
Point(Index)
link(onEvent1,15842762:doWork,[(734,334)(734,327)])
link(onEvent2,13130107:doWork,[])
link(onEvent3,11948546:doWork,[(734,348)(734,355)])
link(Index,3167286:getVar,[])
}
Add(LineBreakEx,12048896,1023,272)
{
Caption="SetData"
}
Add(ComboBox,3501412,1030,636)
{
Left=10
Top=260
Width=150
Height=21
Color=-16777192
Font=[MS Sans Serif,12,1,0,1]
Visible=1
Ctl3D=0
Strings=#5:aaaaa|4:bbbb|4:cccc|5:ddddd|5:eeeee|5:fffff|4:gggg|4:hhhh|5:iiiii|6:jjjjjj|
Text=""
ReadOnly=0
Point(doLeft)
Point(doTop)
Point(doWidth)
Point(doHeight)
Point(doVisible)
Point(onKeyUp)
Point(doSelectString)
Point(doBringToFront)
link(onClick,866868:onEnter,[(1074,649)(1074,673)(962,673)(962,698)])
link(onKeyUp,866868:KeyUp,[(1074,656)(1074,670)(962,670)(962,684)])
}
Add(LineBreakEx,14836581,1023,300)
{
Caption="NexrEscCell_1"
}
Add(LineBreakEx,6296065,855,461)
{
Caption="NexrEscCell_1"
Type=1
link(OnEvent,3938954:EscCell,[])
}
Add(LineBreakEx,6367634,1030,531)
{
Caption="NexrEscCell_2"
}
Add(LineBreakEx,5588180,855,685)
{
Caption="NexrEscCell_2"
Type=1
link(OnEvent,866868:EscCell,[])
}
Add(LineBreakEx,16750978,855,216)
{
Caption="EscCell"
Type=1
link(OnEvent,10463855:EscCell,[])
}
Add(LineBreakEx,14840706,645,433)
{
Caption="SubItem"
Type=3
link(_Data,14706494:SubItem,[])
}
Add(InfoTip,9605650,841,125)
{
Info=#0:|4:Edit|
Font=[MS Sans Serif,12,1,255,1]
Frame=3
Width=351
Height=221
}
Add(LineBreakEx,2230359,631,496)
{
Caption="SubItem"
Type=2
}
Add(LineBreakEx,2092162,1037,776)
{
Caption="SetFocus"
}
Add(InfoTip,14064710,841,573)
{
Info=#0:|8:ComboBox|
Font=[MS Sans Serif,12,1,8421376,1]
Frame=3
Width=351
Height=228
}
Add(LineBreakEx,3854175,855,447)
{
Caption="MT_Data_1"
Type=1
link(OnEvent,3938954:MT_Data,[])
}
Add(LineBreakEx,13130107,743,335)
{
Caption="MT_Data_2"
}
Add(LineBreakEx,11523854,855,202)
{
Caption="MT_Data_2"
Type=1
link(OnEvent,10463855:MT_Data,[])
}
Add(LineBreakEx,11948546,743,349)
{
Caption="MT_Data_3"
}
Add(LineBreakEx,10628137,855,671)
{
Caption="MT_Data_3"
Type=1
link(OnEvent,866868:MT_Data,[])
}
Add(InfoTip,13356219,477,125)
{
Info=#0:|13:StringTableMT|32:режим: TabGrid с EditControl-ами|
Font=[MS Sans Serif,12,1,8388608,1]
Frame=3
Width=358
Height=445
}
Add(InfoTip,6538180,477,573)
{
Info=#0:|329:в режиме TabGrid с EditControl-ами работают стрелки клавиатуры или выбор пункта мышью. Вход в режим редактирования -- либо Enter, либо F2, либо двойной клик мышью. Выход -- либо ESC, либо любой Scroll, либо выбор любой другой ячейки мышью без применения редакции. В режиме Edit, для применения изменений, необходимо нажать Enter.|
Font=[MS Sans Serif,12,1,32768,1]
Frame=3
Width=358
Height=228
}

карма: 0
Время верстки: %cr_time% Текущее время: %time%
0