Вверх ↑
Ответов: 26
Рейтинг: 6
#1: 2020-09-27 17:11:39 ЛС | профиль | цитата
При замене в стандартной схеме с TreeViewEx списка с дисками на элемент dir пропадают иконки у части файлов и иконки папок не правильные.
Что исправить необходимо?
Add(TreeViewEx,3940909,994,98)
{
Left=2
Top=22
Width=405
Height=468
Align=5
IconByIndex=0
Tooltips=0
TrackSelect=0
SingleExpand=0
AlwaysUseIcons=0
IconsState=[]
Icons=[]
Point(Parent)
Point(ItemChild)
Point(onExpand)
Point(onItemPath)
Point(Index)
Point(ItemAtPos)
Point(doAddIcon)
Point(doSelect)
Point(doItemBold)
Point(doItemHasChild)
Point(doItemPath)
Point(onMouseMove)
Point(onDblClick)
Point(doClearIcons)
Point(onKeyDown)
Point(doExpandToggle)
link(Parent,14090756:Var2,[])
link(onExpand,9082723:doEvent1,[(1068,118)(1068,76)])
link(onItemPath,3421795:doStrCat,[(1044,125)(1044,331)(573,331)(573,181)])
link(onMouseMove,9383077:doData,[(1061,132)(1061,230)])
link(onDblClick,1575324:doData,[(1053,139)(1053,293)])
link(onKeyDown,1636147:doCase,[])
}
Add(MultiElementEx,7731652,777,147)
{
@Hint=#20:DirsEnum & FilesEnum|
link(AddIcon,3940909:doAddIcon,[(817,153)(817,139)])
link(Add,3940909:doAdd,[(818,160)(818,199)(947,199)(947,104)])
link(HasChild,15735860:Input,[])
link(IconID,3940909:Count,[(783,122)(860,122)(860,238)(1000,238)])
}
BEGIN_SDK
Add(EditMultiEx,11561374,21,21)
{
WorkCount=#9:StartScan|8:NextScan|
EventCount=#7:AddIcon|3:Add|8:HasChild|
DataCount=#6:IconID|
Width=566
Height=214
link(StartScan,1293174:doEvent1,[(42,27)(42,69)])
link(NextScan,1293174:doEvent2,[(36,34)(36,76)])
}
Add(Hub,1293174,63,63)
{
InCount=2
OutCount=3
link(onEvent1,12779128:doClear,[(112,69)(112,83)])
link(onEvent2,15565532:doValue,[])
link(onEvent3,11931367:doSearch,[(107,83)(107,125)])
}
Add(FileSearch,14584482,175,70)
{
SubDir=1
Include=1
link(onSearch,9553220:doWork2,[])
}
Add(FilePart,9008190,350,133)
{
NameWOExt=1
link(onName,9698349:doString,[])
}
Add(DirTools,14772513,210,182)
{
Point(doExists)
link(onOK,3227344:doEvent,[])
}
Add(FileAttributes,4028852,350,63)
{
Point(doGetFileIcon)
Point(onGetFileIcon)
link(onGetFileIcon,5714619:doCase,[])
}
Add(HubEx,9553220,217,70)
{
link(onEvent,12779128:doAdd,[])
}
Add(ArrayEnum,12315292,252,126)
{
PColor(Array,16711935)
link(onItem,7218241:doEvent1,[])
link(Array,12779128:Array,[])
}
Add(FileSearch,11931367,119,119)
{
SubDir=1
link(onSearch,9553220:doWork3,[(221,125)])
link(onEndSearch,12315292:doEnum,[])
link(Dir,15565532:Value,[])
}
Add(Hub,7218241,294,126)
{
OutCount=3
link(onEvent1,4028852:doGetFileIcon,[(338,132)(338,90)])
link(onEvent2,9008190:doPart,[])
link(onEvent3,14772513:doExists,[(337,146)(337,170)(198,170)(198,209)])
}
Add(StrList,12779128,238,70)
{
}
Add(IndexToChanel,3227344,259,182)
{
Count=3
Point(Data)
link(onEvent2,11561374:HasChild,[(549,195)(549,41)])
link(Data,12315292:Index,[])
}
Add(Memory,15565532,126,70)
{
link(onData,14584482:doSearch,[])
}
Add(Case,5714619,413,70)
{
link(onNextCase,551165:doWork2,[])
link(onTrue,8027927:doData,[(461,83)(461,97)])
}
Add(Icon,7732298,476,28)
{
Icon=[ZIP7E03000078DA63606004420101062029C190C1CCC020C6C0C0A001C44021060506883808383033E0001F3F7EBCF6FCF975BCE0EEDDBB70F51F4E2D4B2304A64D9B86AC7E665A1A7E0404C8EAFFBF3983059D99F9FFCC198869E8EA2F6EFC7F1C8CD64EB0AEF4929ABD4165D2DCFFFDD9FF1F6DC4AA3EA23ACC33DBD335C5618DA3266BCF1AAE1D4FB9AEFCE73EF109680256F57F6BA341A6ED9CFFC2CB42B1348F6BDD75A07A2002099E3983A97EDFF4D8FFD5C1FF0FADFB9619E0176929B0FC84C6E2598ABBCF01D563353F636BF8FB42B7FFCBBB801695879BF29604729D6CE27A3315977AA0BF78526FAB26AF92F4DFC620B45038CB996B770DD7B3E9405D58D5FFFBF7CFA8FBA548C3FFC4B5FFB9DC6F98C65B732E29E4BAD5CFF5661650B6B1B111533DD00AFEF2FF491BFF73457D3609AB03722108A21E08D0D5FFBF92BB698FDFE22F0E93AF02D9FF3E3E86472E50F1810307E0EA81F1F80F1B00AA04796DA6315031904B503DD05860D00315031330727A3E3373265604540F4CC6C88A0F30FEFF4F16660662F6FFFF010A9DBA61]
}
Add(DoData,8027927,476,91)
{
link(onEventData,551165:doWork3,[(529,97)])
link(Data,7732298:Icon,[])
}
Add(FormatStr,9698349,399,140)
{
Mask="<%1,%1>%2"
link(onFString,11561374:Add,[(539,146)(539,34)])
link(Str1,11561374:IconID,[(405,36)(27,36)])
}
Add(HubEx,551165,525,70)
{
Angle=3
link(onEvent,11561374:AddIcon,[(529,27)])
}
END_SDK
Add(GetDataEx,14090756,1015,60)
{
link(Data,1973295:Value,[])
}
Add(Hub,8924140,931,147)
{
InCount=2
link(onEvent1,3940909:doItemBold,[])
link(onEvent2,3940909:doItemHasChild,[])
}
Add(If_else,8121668,728,154)
{
Type=1
Op2=Integer(0)
link(onTrue,7731652:NextScan,[])
link(Op1,3940909:ItemChild,[(734,126)(855,126)(855,245)(1014,245)])
}
Add(MathParse,16626468,889,154)
{
MathStr="%1 + %2 + 1"
link(onResult,8924140:doEvent2,[])
link(X1,14090756:Var1,[(895,65)])
}
Add(MultiElementEx,15735860,847,147)
{
@Hint=#10:Commutator|
link(_out1,8924140:doEvent1,[])
link(_out2,16626468:doCalc,[])
}
BEGIN_SDK
Add(EditMultiEx,13791183,21,21)
{
WorkCount=#5:_idx1|5:_idx2|5:Input|
EventCount=#5:_out1|5:_out2|
Width=167
Height=123
link(_idx1,502949:doWork1,[(41,27)(41,41)])
link(_idx2,502949:doWork2,[(37,34)(37,48)])
link(Input,3862713:doEvent,[(33,41)(33,90)])
}
Add(Icon,11878794,56,84)
{
@Hint=#5:#main|
Icon=[ZIP5E07000078DA636060044209090610C9E0C1CEC020C6C0C0A001C4402106030688380828B0330C7BF01F8CA86208E54651CB1C6AF96B84004AC20AAE9792B8FB8F0351987EA8E2AF51305AFE0CA3F4F31F0E7E02310314FFFC8F0EE603C518EC817E9067F83FFF3D50FE3350F00FB20AECFA01C8378636]
}
Add(ChanelToIndex,502949,54,35)
{
link(onIndex,4010096:doValue,[])
}
Add(Memory,4010096,110,35)
{
Default=Integer(0)
}
Add(IndexToChanel,3862713,110,84)
{
Point(Index)
link(onEvent1,13791183:_out1,[(161,90)(161,27)])
link(onEvent2,13791183:_out2,[(165,97)(165,34)])
link(Index,4010096:Value,[])
}
END_SDK
Add(StrCat,15328461,588,63)
{
Str2="\\"
link(onStrCat,7626839:doEvent1,[])
link(Str1,2558899:CurrentDir,[])
}
Add(StrCat,3421795,588,175)
{
link(onStrCat,10257169:doTrim,[])
link(Str1,15328461:Result,[])
}
Add(Hub,7626839,637,63)
{
OutCount=5
link(onEvent1,15735860:_idx1,[(831,69)(831,153)])
link(onEvent2,3940909:doClear,[(976,76)(976,111)])
link(onEvent3,3940909:doClearIcons,[(970,83)(970,174)])
link(onEvent4,1973295:doClear,[(704,90)(704,27)])
link(onEvent5,7731652:StartScan,[(704,97)(704,153)])
}
Add(Memory,1973295,1015,14)
{
Default=Integer(-1)
}
Add(Hub,13478344,1162,77)
{
InCount=2
OutCount=4
link(onEvent1,15735860:_idx2,[(1217,83)(1217,-11)(838,-11)(838,160)])
link(onEvent2,3940909:doSelect,[(1223,90)(1223,-5)(982,-5)(982,146)])
link(onEvent3,1973295:doValue,[(1229,97)(1229,7)(1003,7)(1003,20)])
link(onEvent4,5963792:doWork1,[(1229,104)])
}
Add(MultiElementEx,11861650,630,245)
{
@Hint=#19:RunFile & StatusBar|
link(onEvent,6492827:doText,[])
link(Data,10257169:Result,[])
}
BEGIN_SDK
Add(EditMultiEx,5574627,21,21)
{
WorkCount=#8:doExists|9:doExists1|
EventCount=#7:onEvent|
VarCount=#5:Value|
DataCount=#4:Data|
Width=524
Height=249
link(doExists,7031950:doExists,[(39,27)(39,111)])
link(doExists1,2911413:doExists,[(33,34)(33,160)])
link(Value,6061146:Value,[(27,249)(482,249)])
}
Add(Memory,6061146,476,147)
{
}
Add(Memory,11245289,245,140)
{
Default=String(Файл : )
link(onData,3019581:doEvent1,[])
}
Add(DirTools,7031950,56,84)
{
Point(doExists)
link(onOK,3639075:doEvent,[])
link(Source,11307465:Var2,[])
}
Add(IndexToChanel,3639075,105,84)
{
Count=3
Point(Data)
link(onEvent3,12696810:doShellExec,[])
}
Add(WinExec,12696810,154,91)
{
link(FileName,15190173:Var2,[])
}
Add(DirTools,2911413,84,133)
{
Point(doExists)
link(onOK,9961549:doEvent,[])
link(Source,12546755:Var2,[])
}
Add(IndexToChanel,9961549,133,133)
{
Count=3
Data=String(Папка: )
Point(Data)
link(onEvent2,7179707:doEvent1,[])
link(onEvent3,7179707:doEvent11,[])
}
Add(FilePart,15488265,357,196)
{
NameWOExt=1
link(onName,8876051:doWork2,[])
link(FileName,907058:Var3,[(363,58)])
}
Add(GetDataEx,12546755,84,53)
{
Angle=3
link(Data,11307465:Var3,[])
}
Add(GetDataEx,15190173,154,53)
{
Angle=3
link(Data,12546755:Var3,[])
}
Add(HubEx,8876051,399,203)
{
link(onEvent,5574627:onEvent,[(525,209)(525,27)])
}
Add(Hub,3019581,294,140)
{
OutCount=5
link(onEvent1,897687:doWork1,[(408,146)(408,153)])
link(onEvent2,8876051:doWork1,[(403,153)])
link(onEvent3,897687:doWork2,[])
link(onEvent4,15488265:doPart,[(339,167)(339,202)])
link(onEvent5,897687:doWork3,[(410,174)(410,167)])
}
Add(GetDataEx,11307465,56,53)
{
link(Data,5574627:Data,[(62,37)(27,37)])
}
Add(ChanelToIndex,897687,427,147)
{
Count=3
link(onIndex,6061146:doValue,[])
}
Add(MultiElementEx,7179707,189,140)
{
@Hint=#9:Mb, Kb, b|
link(onEvent1,11245289:doValue,[])
link(onEvent11,11245289:doClear,[])
link(onStrCat,8876051:doWork3,[(234,160)(234,237)(403,237)])
link(FileName,907058:Var2,[])
}
BEGIN_SDK
Add(EditMultiEx,4557491,21,21)
{
WorkCount=#8:doEvent1|9:doEvent11|
EventCount=#8:onEvent1|9:onEvent11|8:onStrCat|
DataCount=#8:FileName|
Width=391
Height=375
link(doEvent1,14372407:doEvent1,[(35,27)(35,55)])
link(doEvent11,888890:doEvent1,[(35,34)(35,125)])
}
Add(FileAttributes,4792155,147,126)
{
Point(FileSize)
link(FileName,4557491:FileName,[(153,74)(27,74)])
}
Add(Math,3125564,224,238)
{
OpType=3
Op2=10
link(onResult,16137630:doStrCat,[])
}
Add(Math,4272,168,238)
{
OpType=3
Op2=102.4
ResultType=0
link(onResult,3125564:doOperation,[])
link(Op1,13536958:Var2,[])
}
Add(If_else,11572141,119,238)
{
Type=2
Op2=Integer(1024)
link(onTrue,4272:doOperation,[])
link(onFalse,12430836:doStrCat,[(161,251)(161,293)])
link(Op1,12945973:Var2,[])
}
Add(GetDataEx,13536958,168,165)
{
link(Data,4792155:FileSize,[])
}
Add(If_else,16195498,98,189)
{
Type=2
Op2=Integer(1048576)
link(onTrue,11025981:doOperation,[])
link(onFalse,11572141:doCompare,[(142,202)(142,223)(107,223)(107,244)])
link(Op1,12945973:Var1,[(104,170)])
}
Add(Math,6497418,224,189)
{
OpType=3
Op2=10
link(onResult,845934:doStrCat,[])
}
Add(Math,11025981,147,189)
{
OpType=3
Op2=104857.6
ResultType=0
link(onResult,6497418:doOperation,[])
link(Op1,1971549:Var2,[])
}
Add(GetDataEx,1971549,147,165)
{
Angle=1
link(Data,13536958:Var1,[])
}
Add(GetDataEx,12945973,119,165)
{
Angle=1
link(Data,1971549:Var1,[])
}
Add(StrCat,845934,287,189)
{
Str2=" Mb"
link(onStrCat,14405886:doWork2,[])
}
Add(StrCat,16137630,287,238)
{
Str2=" Kb"
link(onStrCat,4997310:doWork2,[])
}
Add(StrCat,12430836,287,287)
{
Str2=" b"
link(onStrCat,15992411:doWork2,[])
link(Str1,13536958:Var3,[(293,170)])
}
Add(DoData,15407520,287,329)
{
Data=String()
link(onEventData,15992411:doWork3,[(361,335)])
}
Add(Hub,888890,49,119)
{
OutCount=3
link(onEvent1,4557491:onEvent11,[(247,125)(247,34)])
link(onEvent2,4792155:doRead,[])
link(onEvent3,16195498:doCompare,[(89,139)(89,195)])
}
Add(Hub,14372407,49,49)
{
link(onEvent1,4557491:onEvent1,[(247,55)(247,27)])
link(onEvent2,15407520:doData,[(84,62)(84,335)])
}
Add(HubEx,15992411,357,287)
{
Angle=3
link(onEvent,4997310:doWork3,[])
}
Add(HubEx,4997310,357,238)
{
Angle=3
link(onEvent,14405886:doWork3,[])
}
Add(HubEx,14405886,357,189)
{
Angle=3
link(onEvent,4557491:onStrCat,[(361,41)])
}
END_SDK
Add(GetDataEx,907058,189,53)
{
Angle=3
link(Data,15190173:Var3,[])
}
END_SDK
Add(DoData,1575324,1085,287)
{
link(onEventData,14726552:doEvent1,[])
link(Data,5730599:Var2,[(1091,266)(1021,266)])
}
Add(Hub,14726552,1183,287)
{
link(onEvent1,12742712:_idx2,[(1233,293)(1233,336)(567,336)(567,167)])
link(onEvent2,13478344:doEvent2,[(1226,300)(1226,330)(1149,330)(1149,90)])
}
Add(MultiElementEx,12742712,672,154)
{
@Hint=#10:Commutator|
link(_out1,8121668:doCompare,[])
link(_out2,11861650:doExists,[(719,167)(719,225)(618,225)(618,251)])
link(_out3,11861650:doExists1,[(712,174)(712,215)(612,215)(612,258)])
}
BEGIN_SDK
Add(EditMultiEx,11642795,21,21)
{
WorkCount=#5:_idx1|5:_idx2|5:_idx3|5:Input|
EventCount=#5:_out1|5:_out2|5:_out3|
Width=167
Height=123
link(_idx1,2980006:doWork1,[(37,27)(37,41)])
link(_idx2,2980006:doWork2,[(37,34)(37,48)])
link(_idx3,2980006:doWork3,[(37,41)(37,55)])
link(Input,13723723:doEvent,[(31,48)(31,90)])
}
Add(Icon,4219287,56,84)
{
@Hint=#5:#main|
Icon=[ZIP5E07000078DA636060044209090610C9E0C1CEC020C6C0C0A001C4402106030688380828B0330C7BF01F8CA86208E54651CB1C6AF96B84004AC20AAE9792B8FB8F0351987EA8E2AF51305AFE0CA3F4F31F0E7E02310314FFFC8F0EE603C518EC817E9067F83FFF3D50FE3350F00FB20AECFA01C8378636]
}
Add(ChanelToIndex,2980006,54,35)
{
Count=3
link(onIndex,11536179:doValue,[])
}
Add(Memory,11536179,110,35)
{
Default=Integer(0)
}
Add(IndexToChanel,13723723,110,84)
{
Count=3
Point(Index)
link(onEvent1,11642795:_out1,[(165,90)(165,27)])
link(onEvent2,11642795:_out2,[(165,97)(165,34)])
link(onEvent3,11642795:_out3,[(165,104)(165,41)])
link(Index,11536179:Value,[])
}
END_SDK
Add(Hub,9082723,1099,70)
{
link(onEvent1,12742712:_idx1,[(1143,76)(1143,0)(658,0)(658,160)])
link(onEvent2,13478344:doEvent1,[])
}
Add(Trim,10257169,630,175)
{
Char="\"
Point(Result)
link(onTrim,12742712:Input,[])
}
Add(ChangeMon,16051836,1134,224)
{
link(onData,11627735:doEvent1,[])
}
Add(StatusBar,6492827,686,245)
{
Panels=#3:=50|4:=170|
Point(doWidth)
link(Panel,11861650:Value,[(699,233)(667,233)(667,289)(636,289)])
}
Add(DoData,9383077,1085,224)
{
link(onEventData,16051836:doData,[])
link(Data,3940909:ItemAtPos,[(1091,198)(1028,198)])
}
Add(Hub,11627735,1183,224)
{
link(onEvent1,12742712:_idx3,[(1240,230)(1240,341)(561,341)(561,174)])
link(onEvent2,5963792:doWork3,[(1229,237)])
}
Add(DoData,15690950,1162,147)
{
link(onEventData,3940909:doExpandToggle,[(1206,153)(1206,203)(984,203)(984,181)])
link(Data,5730599:Var3,[(1168,135)(1097,135)(1097,212)])
}
Add(Case,1636147,1113,140)
{
Value=Integer(13)
link(onTrue,15690950:doData,[])
}
Add(GetDataEx,5730599,1015,207)
{
link(Data,3940909:Index,[])
}
Add(HubEx,5963792,1225,203)
{
Angle=2
link(onEvent,3940909:doItemPath,[(976,209)(976,167)])
}
Add(Dir,2558899,588,-35)
{
}
Add(Button,15904123,350,63)
{
Left=2
Top=2
Width=405
Align=2
Caption="загрузка"
link(onClick,15328461:doStrCat,[])
}




карма: 1

0
Редактировалось 1 раз(а), последний 2020-09-27 17:12:23