А так не пробовал ?
Add(MainForm,2953706,266,147)
{
@Group=62554712
Width=424
Height=363
Caption="Folder Size (c) Автор: Витя. На форуме: VitiaCat"
BorderStyle=3
link(onCreate,8455337:doWork1,[(310,167)(310,160)(254,160)(254,153)])
}
Add(ChildPanel,16774926,266,147)
{
@Group=62554712
}
BEGIN_SDK
Add(EditMulti,12391906,21,21)
{
WorkCount=1
Width=727
Height=326
link(doWork1,7230302:doVisible,[(28,27)(28,48)])
}
Add(Panel,7230302,91,35)
{
Width=420
Height=270
Visible=1
Point(doVisible)
}
Add(DirTools,11026741,259,84)
{
Point(doGetSize)
link(onOK,10519807:doOperation,[])
}
Add(Edit,14161511,210,112)
{
Left=70
Width=310
Text=""
ReadOnly=0
}
Add(GProgressBar,1716819,693,84)
{
Left=10
Top=45
Width=370
LightProgress=255
DarkProgress=65280
InvKindGrad=0
Point(doMax)
}
Add(ProgressBar,11870132,693,133)
{
Left=10
Top=70
Width=370
Point(doMax)
}
Add(LedLadder,14072688,693,181)
{
Left=10
Top=95
Width=370
Gradient=1
Spacing=3
MinMid=50
MidMax=75
Max=1
SegColorMin=255
SegColorMax=65280
NoSegColorMax=15780518
Point(doMax)
}
Add(Hub,15921728,413,84)
{
OutCount=7
link(onEvent1,1716819:doPosition,[])
link(onEvent2,11870132:doPosition,[(625,97)(625,139)])
link(onEvent3,14072688:doPosition,[(578,104)(578,187)])
link(onEvent4,7841450:doData,[(563,111)(563,251)])
link(onEvent5,14199297:doString,[(476,118)(476,258)])
link(onEvent6,973158:doText,[(465,125)(465,299)])
link(onEvent7,8050501:doAdd,[(439,132)(439,202)(303,202)(303,251)])
}
Add(HardDisk,5482082,602,189)
{
Size=1
link(Disk,12027346:Disk,[(608,177)(650,177)(650,323)(41,323)])
}
Add(DoData,7841450,602,245)
{
Point(Data)
link(onEventData,7490434:doEvent1,[])
link(Data,14523328:Var2,[])
}
Add(Hub,7490434,644,245)
{
OutCount=4
link(onEvent1,1716819:doMax,[(676,251)(676,97)])
link(onEvent2,11870132:doMax,[(676,258)(676,146)])
link(onEvent3,14072688:doMax,[(682,265)(682,194)])
}
Add(Math,10519807,315,84)
{
OpType=3
Op2=1048576
ResultType=0
link(onResult,15921728:doEvent1,[])
}
Add(Browse,7046975,84,105)
{
link(onBrowse,9556959:doEvent1,[])
}
Add(Hub,9556959,133,105)
{
OutCount=3
link(onEvent1,2438305:doWork2,[])
link(onEvent2,14161511:doText,[])
link(onEvent3,16082884:doValue,[])
}
Add(FormatStr,14199297,497,252)
{
Mask="%1МБ весит папка из %2МБ на диске."
link(onFString,5927902:doText,[])
link(Str1,5411892:Var3,[(503,190)])
link(Str2,14523328:Var1,[(510,236)])
}
Add(GetDataEx,14523328,602,231)
{
link(Data,5482082:Size,[])
}
Add(Label,5927902,547,252)
{
Left=15
Top=140
Width=137
Height=20
Font=[MS Sans Serif,10,1,16711680,1]
Caption="Выберите папку..."
}
Add(LedNumber,973158,686,293)
{
Left=10
Top=115
Width=375
Alignment=2
Text="00"
ColorHover=0
FonColor=8388608
SegColor=255
NoSegColor=8388736
FonHover=8421376
SegHover=128
Point(doText)
}
Add(Memory,16082884,161,119)
{
}
Add(DoData,8434848,161,210)
{
Point(Data)
link(onEventData,2438305:doWork3,[(249,216)])
link(Data,16082884:Value,[])
}
Add(HubEx,2438305,245,105)
{
link(onEvent,11026741:doGetSize,[])
}
Add(StyleXP,7373613,35,56)
{
}
Add(DriveBox,12027346,35,231)
{
Left=10
Top=20
Width=370
Height=21
UpperCharInBox=0
link(onSelect,5727104:doEvent1,[])
}
Add(Button,16688642,35,105)
{
Left=5
Width=65
Caption="Выбрать"
link(onClick,7046975:doBrowse,[])
}
Add(ChildFormEx,8050501,315,238)
{
link(ValueY,5411892:Var2,[])
}
BEGIN_SDK
Add(EditMultiEx,8221855,21,21)
{
WorkCount=#7:doClear|5:doAdd|
DataCount=#6:ValueY|
link(doClear,10650138:doAdd,[(67,27)(67,41)])
link(doAdd,10650138:doClear,[(67,34)(67,48)])
}
Add(MainForm,14820615,28,35)
{
Left=35
Top=105
Caption="График - Folder Size"
}
Add(Plotter,11647807,154,35)
{
Left=5
Top=161
Width=405
Align=5
Name="g1"
}
Add(PlotLines,10650138,112,35)
{
Grapher="g1"
Color=128
Point(doMaxValues)
link(ValueY,8221855:ValueY,[(118,28)(27,28)])
}
END_SDK
Add(Hub,5727104,112,231)
{
link(onEvent1,8434848:doData,[(144,237)(144,216)])
link(onEvent2,8050501:doClear,[])
}
Add(GetDataEx,5411892,315,185)
{
link(Data,10519807:Result,[])
}
END_SDK
Add(ChildGroupBox,8455337,266,147)
{
@Group=62554712
link(onEvent1,16774926:doWork1,[(310,153)(310,175)(255,175)(255,153)])
link(onEvent2,16290159:doWork1,[(310,160)(310,145)(255,145)(255,153)])
}
BEGIN_SDK
Add(EditMulti,6580945,21,21)
{
@Group=55342472
EventCount=2
WorkCount=1
Width=125
Height=81
VOffset=28
link(doWork1,8002738:doSelect,[])
}
Add(RadioButton,8002738,56,49)
{
@Group=55342472
Left=15
Top=15
Width=130
Caption="Узнать размер папки"
link(onSelect,13619179:doWork2,[])
}
Add(RadioButton,1122324,56,49)
{
@Group=55342472
Left=150
Top=15
Width=130
Caption="Размер диска"
link(onSelect,13619179:doWork3,[(102,55)])
}
Add(BitsToInt,8451133,56,49)
{
@Group=55342472
Count=2
link(Bit1,8002738:Selected,[])
link(Bit2,1122324:Selected,[(69,44)(62,44)])
}
Add(IntToBits,2339671,56,49)
{
@Group=55342472
Count=2
Data_0=Integer(0)
Data_1=Integer(1)
link(Value,8451133:Number,[])
link(onBit1,6580945:onEvent1,[])
link(onBit2,6580945:onEvent2,[])
}
Add(HubEx,13619179,98,49)
{
@Group=55342472
Angle=3
link(onEvent,2339671:doBits,[(102,40)(44,40)(44,55)])
}
Add(GroupBox,6767681,56,49)
{
@Group=55342472
Top=270
Width=420
Height=65
Caption="Режим"
}
END_SDK
Add(ChildPanel,16290159,266,147)
{
@Group=62554712
}
BEGIN_SDK
Add(EditMulti,920847,21,21)
{
WorkCount=1
Width=412
link(doWork1,14889538:doVisible,[(21,209)])
}
Add(Panel,14889538,42,196)
{
Width=420
Height=268
Visible=1
BorderWidth=0
BevelInner=0
BevelWidth=0
Point(doVisible)
}
Add(DriveBox,2721240,56,35)
{
Left=5
Top=5
Width=400
Height=21
UpperCharInBox=0
}
Add(Label,14858784,344,35)
{
Left=5
Top=30
Width=399
Height=20
Font=[MS Sans Serif,10,1,16711680,1]
Caption="~"
}
Add(FormatStr,9972859,294,35)
{
DataCount=3
Mask="Свободно:%1КБ из %2КБ | Занято:%3КБ "
link(onFString,12497469:doWork2,[])
link(Str1,3204509:FreeSize,[(300,23)(206,23)(206,72)(111,72)])
link(Str2,11280438:Var1,[(307,23)(125,23)])
link(Str3,3204509:LoadSize,[(314,23)(216,23)(216,72)(118,72)])
}
Add(HardDisk,3204509,98,28)
{
link(Disk,11916225:Var2,[])
}
Add(If_else,2480837,98,91)
{
Type=3
Op2=Integer(1024)
link(onTrue,1999263:doWork2,[(212,97)(212,41)])
link(onFalse,3942935:doCompare,[(135,104)(135,97)])
link(Op1,14198869:Var2,[])
}
Add(Timer,4261858,28,91)
{
Interval=100
link(onTimer,2480837:doCompare,[])
}
Add(If_else,3942935,140,91)
{
Type=4
Op2=Integer(1024)
link(onTrue,11702013:doWork2,[(233,97)(233,125)])
link(onFalse,6483443:doWork2,[(233,104)(233,83)])
link(Op1,9621112:Var2,[])
}
Add(GetDataEx,14198869,98,70)
{
link(Data,3204509:Size,[])
}
Add(HardDisk,16125838,140,28)
{
Size=1
link(Disk,4763280:Var3,[(146,17)])
}
Add(GetDataEx,11916225,98,21)
{
link(Data,2721240:Disk,[(104,15)(83,15)(83,79)(62,79)])
}
Add(HardDisk,16693540,182,28)
{
Size=2
link(Disk,4763280:Var1,[(188,15)(132,15)])
}
Add(GetDataEx,11280438,119,70)
{
Angle=3
link(Data,14198869:Var3,[])
}
Add(FormatStr,4045541,294,77)
{
DataCount=3
Mask="Свободно:%1МБ из %2МБ | Занято:%3МБ "
link(onFString,12024503:doWork3,[(333,83)])
link(Str1,16125838:FreeSize,[(300,69)(153,69)])
link(Str2,9621112:Var3,[(307,69)])
link(Str3,16125838:LoadSize,[(314,69)(160,69)])
}
Add(HubEx,12497469,329,35)
{
link(onEvent,14858784:doText,[])
}
Add(GetDataEx,9621112,140,64)
{
link(Data,16125838:Size,[])
}
Add(FormatStr,4444466,294,119)
{
DataCount=3
Mask="Свободно:%1ГБ из %2ГБ | Занято:%3ГБ "
link(onFString,12024503:doWork2,[(328,125)(328,62)])
link(Str1,16693540:FreeSize,[(300,89)(195,89)])
link(Str2,16693540:Size,[(307,89)(188,89)])
link(Str3,16693540:LoadSize,[(314,89)(202,89)])
}
Add(HubEx,12024503,329,56)
{
Angle=3
link(onEvent,12497469:doWork3,[])
}
Add(RadioButton,5363280,56,133)
{
Left=5
Top=50
Width=80
Caption="Килобайты"
link(onSelect,2353659:doEvent1,[])
}
Add(RadioButton,11294555,93,167)
{
Left=85
Top=50
Width=80
Caption="Мегабайты"
link(onSelect,2240315:doEvent1,[])
}
Add(RadioButton,10007605,133,194)
{
Left=165
Top=50
Width=80
Caption="Гигабайты"
link(onSelect,767595:doEvent1,[])
}
Add(RadioButton,5130923,174,218)
{
Left=245
Top=50
Width=110
Selected=0
Caption="Автоматически"
link(onSelect,15760384:doEvent1,[])
}
Add(Hub,2353659,98,133)
{
OutCount=5
link(onEvent1,8239161:doWork2,[(124,139)(124,121)])
link(onEvent2,1999263:doWork3,[(263,146)])
link(onEvent3,5096642:doTimer,[(164,153)(164,272)])
link(onEvent4,11756009:doWork2,[(157,160)(157,335)])
link(onEvent5,4715729:doWork1,[(242,167)])
}
Add(HubEx,1999263,259,35)
{
link(onEvent,8990868:doWork2,[])
}
Add(Hub,2240315,140,167)
{
OutCount=5
link(onEvent1,12229605:doWork3,[(166,173)])
link(onEvent2,10774091:doWork3,[(270,180)])
link(onEvent3,3115400:doTimer,[(186,187)(186,314)])
link(onEvent4,4471125:doWork2,[(178,194)(178,363)])
link(onEvent5,14413074:doWork1,[(235,201)])
}
Add(HubEx,8239161,77,115)
{
Angle=2
link(onEvent,4261858:doStop,[(16,121)(16,104)])
}
Add(HubEx,6483443,266,77)
{
link(onEvent,4045541:doString,[])
}
Add(Hub,767595,182,194)
{
OutCount=5
link(onEvent1,12229605:doWork1,[(208,200)(208,160)])
link(onEvent2,11702013:doWork3,[(277,207)])
link(onEvent3,15825879:doTimer,[(206,214)(206,356)])
link(onEvent4,9901206:doWork2,[(199,221)(199,279)])
link(onEvent5,6330048:doWork1,[(207,228)])
}
Add(HubEx,12229605,162,154)
{
Angle=3
link(onEvent,8239161:doWork3,[(166,149)(81,149)])
}
Add(HubEx,11702013,273,119)
{
link(onEvent,12445938:doWork2,[])
}
Add(GetDataEx,4763280,126,21)
{
Angle=3
link(Data,11916225:Var3,[])
}
Add(Timer,5096642,217,266)
{
Interval=100
Enable=1
link(onTimer,8990868:doWork3,[(277,272)])
}
Add(Hub,15760384,224,218)
{
OutCount=4
link(onEvent1,4261858:doTimer,[(250,224)(250,160)(16,160)(16,97)])
link(onEvent2,14413074:doWork2,[(250,231)(250,255)])
link(onEvent3,4715729:doWork2,[])
link(onEvent4,11756009:doWork1,[(250,245)(250,304)(205,304)])
}
Add(Timer,3115400,217,308)
{
Interval=100
Enable=1
link(onTimer,10774091:doWork2,[(258,314)(258,97)])
}
Add(Timer,15825879,217,350)
{
Interval=100
Enable=1
link(onTimer,12445938:doWork3,[(284,356)])
}
Add(HubEx,8990868,273,35)
{
link(onEvent,9972859:doString,[])
}
Add(HubEx,10774091,266,91)
{
Angle=3
link(onEvent,6483443:doWork3,[])
}
Add(HubEx,12445938,280,119)
{
link(onEvent,4444466:doString,[])
}
Add(HubEx,9901206,201,273)
{
link(onEvent,5096642:doStop,[])
}
Add(HubEx,6330048,203,315)
{
link(onEvent,3115400:doStop,[])
}
Add(HubEx,4471125,201,357)
{
link(onEvent,15825879:doStop,[])
}
Add(HubEx,14413074,231,249)
{
Angle=2
link(onEvent,9901206:doWork1,[(205,255)])
}
Add(HubEx,11756009,201,329)
{
Angle=1
link(onEvent,4471125:doWork1,[])
}
Add(HubEx,4715729,238,232)
{
link(onEvent,6330048:doWork2,[(249,238)(249,279)(205,279)(205,321)])
}
END_SDK