ок. Cпасибо. ------------ Дoбавленo в 13.47:еще вопросик. В дочернюю форму поместил ChildScrollBox, в него поместил несколько ChildPanel, в которых другие элементы интерфейса, к которым я применил слои. И при этом при изменении размеров дочерней формы происходят нежелательные визуальные эффекты и возрастает нагрузка на ЦП. Можно как-нибудь оптимизировать все это, не теряя в функциональности? Add(MainForm,7008670,119,105) { Width=579 Height=258 WinStyle=2 Caption="Simple Tester" BorderStyle=1 Point(onClose) link(onCreate,11732904:doWork2,[(173,125)(173,62)]) link(onClose,11732904:doWork3,[(173,132)(173,69)]) } Add(GLabel,2318192,161,203) { Width=563 Height=24 Align=2 Font=[MS Sans Serif,12,0,0,1] Caption="Simple Tester" AutoSize=1 Alignment=2 VAlignment=0 DepthShadow=2 FonGradient=0 HorizFonGrad=0 HSymbolGrad=0 Antialiased=0 } Add(ButtonRush,9268485,105,42) { Top=24 Width=573 Height=70 Align=2 Color=65280 Font=[MS Sans Serif,12,0,0,1] Caption="Exercise One" Glyphs=[] link(onClick,11732904:doWork1,[(167,48)(167,55)]) } Add(ChildForm,11732904,196,49) { } BEGIN_SDK Add(EditMulti,15947972,21,21) { WorkCount=3 Width=510 Height=564 link(doWork1,12356257:doVisible,[(28,27)(28,139)]) } Add(MainForm,12356257,35,105) { Left=35 Top=105 Width=1239 Height=669 Visible=1 Caption="task 1" WindowsState=2 Position=1 Point(doVisible) Point(onClose) link(onCreate,16402390:doWork1,[(205,125)(205,139)]) } Add(ChildScrollBox,16402390,343,133) { } BEGIN_SDK Add(EditMulti,12359259,21,21) { WorkCount=2 Width=419 Height=536 link(doWork1,4197377:doEvent1,[(59,27)(59,181)]) link(doWork2,10382289:doEvent,[(101,34)(101,104)]) } Add(ScrollBox,641799,217,42) { Width=1223 Height=631 Align=5 Color=-16777211 Ctl3D=1 BorderStyle=2 } Add(ChildPanel,3461872,301,147) { } BEGIN_SDK Add(EditMulti,3595084,21,21) { WorkCount=2 Width=538 Height=648 } Add(Panel,3602967,511,35) { Left=10 Top=5 Width=652 Height=199 Layout="parent.vert" WidthScale=20 HeightScale=15 } Add(Edit,1739587,154,91) { Left=275 Top=70 Font=[MS Sans Serif,14,0,0,1] Layout="vert" WidthScale=40 ModeSp=3 Text="" Alignment=2 } Add(HBoxLayout,10338288,91,315) { Name="vert" Padding=20 } Add(If_else,6260620,217,98) { Op2=String(Put the boxes on the shelves!) } Add(Memory,8755363,259,84) { Point(Data) } Add(GlobalVar,3639769,266,42) { Name="right" Data=String(right.bmp) } Add(Image,3592366,420,119) { Left=375 Top=95 Color=65535 Ctl3D=0 Layout="vert" WidthScale=20 Point(Handle) } Add(Memory,2648511,266,210) { Point(Data) } Add(GlobalVar,12911675,259,168) { Name="wrong" Data=String(wrong.bmp) } Add(PictureStream,7426594,350,98) { } Add(PictureStream,8348851,357,182) { link(onLoad,11015060:doWork2,[]) } Add(HubEx,907463,399,119) { } Add(Label,13225176,182,175) { Left=90 Top=35 Align=2 Font=[MS Sans Serif,10,4,0,1] Caption="" AutoSize=1 } Add(Hub,2109630,224,182) { OutCount=3 link(onEvent1,9605591:doWork2,[(243,188)(243,167)(149,167)(149,181)]) } Add(HilightMemo,5127686,105,84) { Left=15 Top=75 Width=125 Height=15 Color=-16777201 Font=[Arial Narrow,12,0,0,204] Ctl3D=1 Layout="vert" WidthScale=40 Strings=#25:Put the box on the shelf!| HilightStrings=#11:box=black=B|13:shelf=black=B| HilightFont=[Palatino Linotype,12,0,0,204] ReadOnly=0 RightMargin=1 } Add(Ini,13345805,105,238) { FileName="ini.ini" Section="button1" Key="ex1" Type=1 Point(doEraseSection) link(onResult,15922269:doEvent1,[]) link(Value,3441912:Var1,[(132,222)]) } Add(HubEx,9605591,168,175) { } Add(Hub,15922269,147,238) { link(onEvent1,9605591:doWork3,[(172,244)]) link(onEvent2,11963985:doCompare,[(175,251)(175,405)]) } Add(If_else,11963985,189,399) { Op2=String(Put the boxes on the shelves!) link(onTrue,9978470:doValue,[(261,405)(261,363)]) link(onFalse,2396714:doLength,[(240,412)(240,433)]) link(Op1,3441912:Var2,[(195,313)(181,313)]) } Add(Memory,9978470,301,357) { Point(Data) link(onData,13529210:doLoad,[(355,363)(355,377)]) link(Data,658066:Var,[(307,343)(314,343)]) } Add(GlobalVar,658066,308,315) { Name="right" Data=String(right.bmp) } Add(Memory,8541762,399,483) { Point(Data) link(onData,14813738:doLoad,[(453,489)(453,461)]) link(Data,11407064:Var,[(405,469)(398,469)]) } Add(GlobalVar,11407064,392,441) { Name="wrong" Data=String(wrong.bmp) } Add(PictureStream,13529210,378,371) { link(onLoad,11015060:doWork3,[(422,377)(422,284)(396,284)]) link(FileName,9978470:Value,[(384,359)(346,359)(346,401)(307,401)]) } Add(PictureStream,14813738,476,455) { link(onLoad,12382724:doWork1,[(520,461)(520,153)]) link(FileName,8541762:Value,[(482,443)(444,443)(444,527)(405,527)]) } Add(Length,2396714,259,427) { link(onLength,15901440:doCompare,[(303,433)(303,440)]) link(Str,6631201:Var3,[(265,215)]) } Add(If_else,15901440,315,434) { Op2=String(0) link(onFalse,8541762:doValue,[(373,447)(373,489)]) link(Op1,2396714:Result,[(321,422)(293,422)(293,471)(265,471)]) } Add(GetDataEx,3441912,175,217) { Angle=1 link(Data,6631201:Var2,[(188,222)]) } Add(GetDataEx,6631201,182,210) { } Add(HubEx,11015060,392,182) { link(onEvent,12382724:doWork3,[(403,188)]) } Add(HubEx,12382724,399,147) { Angle=3 } END_SDK Add(IndexToChanel,10382289,182,98) { link(onEvent1,2589647:doMessage,[]) link(onEvent2,542655:doEvent1,[(219,111)(219,146)]) } Add(Message,2589647,245,98) { Message="Перепешите предложения в соответствующие поля ввода, ставя слова, выделенные жирным шрифтом,во множественное число! после ввода предложения нажмите Enter!" Caption="Задание" } Add(ChildPanel,16551675,294,238) { } BEGIN_SDK Add(EditMulti,10343276,21,21) { WorkCount=2 Width=776 Height=536 link(doWork1,8804724:doRead,[(56,27)(56,223)]) link(doWork2,8804724:doEraseSection,[(56,34)(56,237)]) } Add(Panel,6776149,63,315) { Left=10 Top=5 Width=652 Height=199 Layout="parent.vert" WidthScale=20 HeightScale=15 } Add(Edit,10831943,154,91) { Left=275 Top=70 Font=[MS Sans Serif,14,0,0,1] Layout="vert" WidthScale=40 ModeSp=3 Text="" Alignment=2 link(onEnter,14661613:doEvent1,[(198,104)(198,153)]) } Add(HBoxLayout,5797366,518,175) { Name="vert" Padding=20 } Add(If_else,6481187,217,98) { Op2=String(These are French dictionaries.) link(onTrue,16307927:doValue,[(254,104)(254,90)]) link(onFalse,14047492:doValue,[(257,111)(257,216)]) link(Op1,10831943:Text,[(223,86)(191,86)(191,135)(160,135)]) } Add(Memory,16307927,259,84) { Point(Data) link(onData,4563160:doLoad,[(321,90)(321,104)]) link(Data,7388288:Var,[(265,70)(272,70)]) } Add(GlobalVar,7388288,266,42) { Name="right" Data=String(right.bmp) } Add(Image,14789248,448,119) { Left=375 Top=95 Color=65535 Ctl3D=0 Layout="vert" WidthScale=20 HeightScale=15 Point(Handle) } Add(Memory,14047492,266,210) { Point(Data) link(onData,7123115:doLoad,[(328,216)(328,188)]) link(Data,14810156:Var,[(272,196)(265,196)]) } Add(GlobalVar,14810156,259,168) { Name="wrong" Data=String(wrong.bmp) } Add(PictureStream,4563160,350,98) { link(onLoad,7604747:doWork2,[(401,104)(401,125)]) link(FileName,16307927:Value,[(356,86)(310,86)(310,128)(265,128)]) } Add(PictureStream,7123115,357,182) { link(onLoad,7604747:doWork3,[(403,188)]) link(FileName,14047492:Value,[(363,170)(317,170)(317,254)(272,254)]) } Add(HubEx,7604747,399,119) { link(onEvent,2188942:doWork2,[]) } Add(Label,5770304,168,161) { Left=90 Top=35 Align=2 Font=[MS Sans Serif,10,4,0,1] Caption="" AutoSize=1 } Add(Hub,14661613,210,147) { OutCount=3 link(onEvent1,5928120:doWork2,[(236,153)(236,157)(149,157)(149,160)]) link(onEvent2,6481187:doCompare,[(236,160)(236,132)(205,132)(205,104)]) link(onEvent3,8804724:doWrite,[(236,167)(236,199)(79,199)(79,230)]) } Add(HilightMemo,14468483,105,84) { Left=15 Top=75 Width=125 Height=15 Color=-16777201 Font=[Palatino Linotype,12,0,0,204] Ctl3D=1 Layout="vert" WidthScale=40 Strings=#28:This is a French dictionary.| HilightStrings=#18:dictionary=black=B|0:| HilightFont=[Palatino Linotype,12,0,0,204] ReadOnly=0 RightMargin=1 } Add(Ini,8804724,91,217) { FileName="ini.ini" Section="button1" Key="ex3" Type=1 Point(doEraseSection) link(onResult,15459841:doEvent1,[]) link(Value,14512792:Var1,[(118,201)]) } Add(HubEx,5928120,147,154) { link(onEvent,5770304:doText,[(161,160)(161,167)]) } Add(If_else,11720205,168,378) { Op2=String(These are French dictionaries.) link(onTrue,10077229:doValue,[(240,384)(240,342)]) link(onFalse,7719339:doLength,[(219,391)(219,412)]) link(Op1,7520258:Var2,[]) } Add(Memory,10077229,280,336) { Point(Data) link(onData,5821097:doLoad,[(334,342)(334,356)]) link(Data,5278467:Var,[(286,322)(293,322)]) } Add(GlobalVar,5278467,287,294) { Name="right" Data=String(right.bmp) } Add(Memory,2219574,378,462) { Point(Data) link(onData,12119962:doLoad,[(432,468)(432,440)]) link(Data,14402375:Var,[(384,448)(377,448)]) } Add(GlobalVar,14402375,371,420) { Name="wrong" Data=String(wrong.bmp) } Add(Hub,15459841,133,217) { link(onEvent1,5928120:doWork3,[(151,223)]) link(onEvent2,11720205:doCompare,[(157,230)(157,384)]) } Add(GetDataEx,14512792,161,196) { Angle=1 link(Data,5770304:Caption,[(174,201)]) } Add(PictureStream,5821097,357,350) { link(onLoad,2188942:doWork3,[(417,356)]) link(FileName,10077229:Value,[(363,338)(325,338)(325,380)(286,380)]) } Add(PictureStream,12119962,455,434) { link(onLoad,10774494:doWork3,[(494,440)]) link(FileName,2219574:Value,[(461,422)(423,422)(423,506)(384,506)]) } Add(HubEx,2188942,413,119) { link(onEvent,10774494:doWork2,[]) } Add(HubEx,10774494,420,119) { link(onEvent,14789248:doLoad,[]) } Add(Length,7719339,238,406) { link(onLength,6653655:doCompare,[(282,412)(282,419)]) link(Str,7520258:Var3,[(244,313)]) } Add(GetDataEx,7520258,168,308) { link(Data,14512792:Var2,[(174,292)(167,292)]) } Add(If_else,6653655,294,413) { Op2=String(0) link(onFalse,2219574:doValue,[(352,426)(352,468)]) link(Op1,7719339:Result,[(300,401)(272,401)(272,450)(244,450)]) } END_SDK Add(Hub,4197377,98,175) { OutCount=5 link(onEvent1,3461872:doWork1,[(196,181)(196,153)]) link(onEvent2,1263220:doWork1,[(196,188)(196,195)]) link(onEvent3,16551675:doWork1,[(115,195)(115,244)]) } Add(Hub,542655,224,140) { link(onEvent1,3461872:doWork2,[(270,146)(270,160)]) } Add(ChildPanel,1263220,301,189) { } BEGIN_SDK Add(EditMulti,16092369,21,21) { WorkCount=2 Width=769 Height=606 link(doWork1,5605118:doRead,[(81,27)(81,272)]) } Add(Panel,13592652,546,63) { Left=10 Top=5 Width=652 Height=199 Layout="parent.vert" WidthScale=20 HeightScale=15 } Add(Edit,13615756,189,119) { Left=275 Top=70 Font=[MS Sans Serif,14,0,0,1] Ctl3D=1 Layout="vert" WidthScale=40 HeightScale=100 ModeSp=3 Text="" Alignment=2 link(onEnter,12555242:doEvent1,[(240,132)(240,216)]) } Add(HBoxLayout,12497534,126,343) { Name="vert" Padding=20 } Add(If_else,12063162,252,126) { Op2=String(I have hurt my feet.) link(onTrue,12610430:doValue,[(289,132)(289,118)]) link(onFalse,3380139:doValue,[(292,139)(292,244)]) link(Op1,13615756:Text,[(258,114)(226,114)(226,163)(195,163)]) } Add(Memory,12610430,294,112) { Point(Data) link(onData,15652363:doLoad,[(356,118)(356,132)]) link(Data,1699894:Var,[(300,98)(307,98)]) } Add(GlobalVar,1699894,301,70) { Name="right" Data=String(right.bmp) } Add(Image,15330110,455,147) { Left=375 Top=95 Color=65535 Ctl3D=0 Layout="vert" WidthScale=20 HeightScale=100 Point(Handle) } Add(Memory,3380139,301,238) { Point(Data) link(onData,2330075:doLoad,[(363,244)(363,216)]) link(Data,9155615:Var,[(307,224)(300,224)]) } Add(GlobalVar,9155615,294,196) { Name="wrong" Data=String(wrong.bmp) } Add(PictureStream,15652363,385,126) { link(onLoad,7814125:doWork2,[(436,132)(436,153)]) link(FileName,12610430:Value,[(391,114)(345,114)(345,156)(300,156)]) } Add(PictureStream,2330075,392,210) { link(onLoad,6800804:doWork2,[]) link(FileName,3380139:Value,[(398,198)(352,198)(352,282)(307,282)]) } Add(HubEx,7814125,434,147) { link(onEvent,15330110:doLoad,[]) } Add(Label,9708892,217,203) { Left=90 Top=35 Align=2 Font=[MS Sans Serif,8,2,16711680,1] Caption="" AutoSize=1 } Add(Hub,12555242,259,210) { OutCount=3 link(onEvent1,400800:doWork2,[(278,216)(278,195)(184,195)(184,209)]) link(onEvent2,12063162:doCompare,[(278,223)(278,160)(240,160)(240,132)]) link(onEvent3,5605118:doWrite,[(285,230)(285,254)(128,254)(128,279)]) } Add(HilightMemo,15640994,140,112) { Left=15 Top=75 Width=125 Height=15 Color=-16777201 Font=[Palatino Linotype,12,0,0,204] Ctl3D=1 Layout="vert" WidthScale=40 HeightScale=100 Strings=#20:I have hurt my foot.| HilightStrings=#10:foot=red=B|0:| HilightFont=[Palatino Linotype,12,0,0,204] ReadOnly=0 RightMargin=1 } Add(Ini,5605118,140,266) { FileName="ini.ini" Section="button1" Key="ex2" Type=1 link(onResult,7975404:doEvent1,[]) link(Value,160670:Var1,[(167,250)]) } Add(HubEx,400800,203,203) { link(onEvent,9708892:doText,[]) } Add(Hub,7975404,182,266) { link(onEvent1,400800:doWork3,[(207,272)]) link(onEvent2,16602909:doCompare,[(210,279)(210,433)]) } Add(If_else,16602909,224,427) { Op2=String(I have hurt my feet.) link(onTrue,5316505:doValue,[(296,433)(296,391)]) link(onFalse,14622733:doLength,[(275,440)(275,461)]) link(Op1,160670:Var2,[(230,341)(216,341)]) } Add(Memory,5316505,336,385) { Point(Data) link(onData,14785210:doLoad,[(390,391)(390,405)]) link(Data,5759638:Var,[(342,371)(349,371)]) } Add(GlobalVar,5759638,343,343) { Name="right" Data=String(right.bmp) } Add(Memory,12139630,434,511) { Point(Data) link(onData,9522477:doLoad,[(488,517)(488,489)]) link(Data,10175514:Var,[(440,497)(433,497)]) } Add(GlobalVar,10175514,427,469) { Name="wrong" Data=String(wrong.bmp) } Add(PictureStream,14785210,413,399) { link(onLoad,6800804:doWork3,[(457,405)(457,312)(431,312)]) link(FileName,5316505:Value,[(419,387)(381,387)(381,429)(342,429)]) } Add(PictureStream,9522477,511,483) { link(onLoad,3376648:doWork1,[(555,489)(555,181)]) link(FileName,12139630:Value,[(517,471)(479,471)(479,555)(440,555)]) } Add(Length,14622733,294,455) { link(onLength,9273253:doCompare,[(338,461)(338,468)]) link(Str,439694:Var3,[(300,243)]) } Add(If_else,9273253,350,462) { Op2=String(0) link(onFalse,12139630:doValue,[(408,475)(408,517)]) link(Op1,14622733:Result,[(356,450)(328,450)(328,499)(300,499)]) } Add(GetDataEx,160670,210,245) { Angle=1 link(Data,439694:Var2,[(223,250)]) } Add(GetDataEx,439694,217,238) { link(Data,9708892:Caption,[]) } Add(HubEx,6800804,427,210) { link(onEvent,3376648:doWork3,[(438,216)]) } Add(HubEx,3376648,434,175) { Angle=3 link(onEvent,7814125:doWork3,[]) } END_SDK Add(VBoxLayout,3178224,70,322) { Name="vert" } END_SDK Add(Menu,11567222,126,63) { Menu=#7:Задание|19:очистьть сохранение| Point(onSelectNum) link(onSelectNum,16402390:doWork2,[(250,76)(250,146)]) } END_SDK
|