Не понимаю я этот Тулбар Лайаут! Не могу понять! Все делаю, как в примерах, не получается, все картинки складываются в стопочку друг на друга, а не сеткой!
Add(MainForm,9313895,63,42)
{
Width=537
Height=492
}
Add(ChildScrollBox,14986880,196,42)
{
}
BEGIN_SDK
Add(EditMulti,14579416,420,210)
{
WorkCount=2
VarCount=2
Width=272
Height=179
VOffset=14
PColor(doWork1,16755200)
PColor(doWork2,16711935)
link(doWork1,13563605:doEvent1,[])
link(doWork2,1612140:##clear,[(437,237)(437,321)])
link(Var1,1612140:##count,[(426,371)(636,371)])
}
Add(ScrollBox,4007144,371,287)
{
Top=107
Width=521
Height=347
Align=5
Color=15397089
Layout="parent.MyImage"
Point(Width)
}
Add(ChildPanelEx,1612140,630,294)
{
Mode=1
}
BEGIN_SDK
Add(EditMultiEx,11543816,21,21)
{
WorkCount=#5:##add|8:##select|6:doLoad|7:##clear|7:doWidth|8:doHeight|
EventCount=#8:onResize|
VarCount=#7:##count|7:##index|12:##eventIndex|
Width=209
Height=207
Point(##add)
Point(##select)
Point(##clear)
Point(##count)
Point(##index)
Point(##eventIndex)
link(doLoad,8674628:doLoad,[])
link(doWidth,6686648:doWidth,[(73,55)(73,146)])
link(doHeight,6686648:doHeight,[(73,62)(73,153)])
link(##count,8674628:ImageBitmap,[(27,78)(97,78)])
}
Add(Panel,6686648,126,133)
{
Width=115
Height=130
Color=15780518
Layout="parent.MyImage"
Point(onResize)
Point(doWidth)
Point(doHeight)
}
Add(Image,8674628,91,35)
{
Left=2
Top=2
Width=214
Height=158
Align=5
Color=65535
link(onClick,11543816:onResize,[(159,41)(159,27)])
}
END_SDK
Add(Hub,13563605,490,224)
{
OutCount=4
PColor(onEvent1,16755200)
PColor(onEvent2,16755200)
PColor(onEvent3,16755200)
link(onEvent1,1612140:##add,[(571,230)(571,300)])
link(onEvent2,61617:doResize,[])
link(onEvent3,1612140:doLoad,[(513,244)(513,314)])
}
Add(ToolBarLayout,61617,525,231)
{
Name="MyCells"
Space=2
Padding=30
}
END_SDK
Add(ChildPanel,12877256,133,42)
{
link(onEvent1,14986880:doWork1,[])
link(onEvent2,14986880:doWork2,[])
}
BEGIN_SDK
Add(EditMulti,6028224,511,238)
{
EventCount=2
}
Add(Panel,9994112,455,322)
{
Top=5
Width=515
Height=100
Align=2
}
Add(Button,2334403,538,337)
{
Left=55
Top=35
Width=90
Caption="Показать"
link(onClick,2652920:doEvent1,[(579,343)(579,342)])
}
Add(FileSearch,10445709,644,343)
{
link(onSearch,12348148:doLoad,[])
link(Dir,14699836:Text,[])
}
Add(Img_Loader,12348148,749,343)
{
PColor(onLoad,16755200)
link(onLoad,6028224:onEvent1,[(796,349)(796,244)])
}
Add(Edit,14699836,651,294)
{
Left=45
Top=16
Width=325
Text="C:\Users\Public\Pictures\Sample Pictures"
}
Add(Hub,2652920,595,336)
{
InCount=2
PColor(onEvent1,16711935)
link(onEvent1,6028224:onEvent2,[(710,342)(710,251)])
link(onEvent2,10445709:doSearch,[])
}
END_SDK