я хочу просто сделать вот такой EDIT Add(MainForm,2953706,21,70) { Width=540 Height=240 link(onCreate,2152687:doData,[(345,90)(345,104)]) } Add(Label,7068398,889,245) { Left=25 Top=100 Width=493 Height=25 Color=0 Font=[Univers,11,1,255,204] Ctl3D=0 Caption="™" AutoSize=1 Point(onMouseDown) Point(Handle) Point(onKillFocus) Point(onSetFocus) Point(doVisible) link(onMouseDown,7162222:doWork2,[(941,258)(941,251)]) link(onKillFocus,1644162:doWork2,[(930,265)(930,258)]) } Add(Edit,15212095,147,147) { @Group=59803968 Left=-465 Top=195 Width=493 Height=25 Font=[Univers,11,1,0,204] Text="" Point(onKeyDown) Point(doSetFocus) Point(onKeyUp) Point(onKillFocus) Point(onSetFocus) Point(Handle) Point(Position) link(onChange,3855186:doEvent1,[(432,153)(432,188)]) link(onEnter,6251023:doData,[(440,160)(440,146)]) link(onKeyUp,12482180:doCompare,[(444,174)(444,237)(380,237)(380,258)]) link(onKillFocus,15869128:doWork3,[(492,181)(492,300)]) link(onSetFocus,9969439:doEvent1,[(464,188)(464,223)]) } Add(VisualShape,13762107,980,476) { @Group=59803968 Left=-475 Top=185 Width=492 Height=40 PColor=-16777201 Color2=-16777201 } Add(VisualShape,15588955,927,517) { @Group=59803968 Left=-380 Top=200 Width=492 Height=40 PColor=-16777201 Color2=-16777201 } Add(VisualShape,12043347,923,437) { @Group=59803968 Left=-380 Top=187 Width=492 Height=10 PColor=-16777201 Color2=-16777201 } Add(VisualShape,4271309,850,459) { @Group=59803968 Left=20 Top=185 Width=12 Height=40 PColor=-16777201 Color2=-16777201 } Add(Timer,9756378,203,448) { Interval=500 link(onTimer,528498:doEvent1,[]) } Add(Hub,11139737,399,448) { link(onEvent1,15530002:doEvent1,[]) } Add(Timer,10222821,511,483) { Interval=500 Enable=1 link(onTimer,6875799:doEvent1,[]) } Add(Hub,528498,259,448) { link(onEvent1,474126:doWork2,[(285,454)(285,458)(191,458)(191,461)]) link(onEvent2,6800315:doEvent1,[(291,461)(291,454)]) } Add(Hub,6875799,560,483) { link(onEvent1,2589270:doWork2,[(586,489)(586,493)(485,493)(485,496)]) link(onEvent2,12386402:doEvent1,[(592,496)(592,503)]) } Add(DoData,14096195,658,497) { Data=String() link(onEventData,6635518:doWork1,[(750,503)(750,419)]) link(Data,16027070:Value,[(664,411)(720,411)]) } Add(HubEx,6635518,525,413) { Angle=3 link(onEvent,14055857:doWork3,[(529,402)(366,402)]) } Add(Memory,13054578,343,385) { } Add(Hub,14469039,560,378) { link(onEvent1,11893981:doData,[(586,384)(586,363)(275,363)(275,391)]) link(onEvent2,7198710:doWork2,[]) } Add(Memory,13355059,658,294) { Default=String(™) } Add(StrCat,2722415,609,385) { link(onStrCat,16027070:doValue,[(677,391)(677,300)]) link(Str1,8701162:Var2,[(615,282)(671,282)]) link(Str2,13355059:Value,[(622,362)(664,362)]) } Add(HubEx,14055857,362,371) { Angle=3 link(onEvent,11413087:doEvent1,[(366,244)]) } Add(Hub,6908464,525,315) { OutCount=3 link(onEvent1,2589270:doWork1,[(551,321)(551,407)(487,407)]) link(onEvent2,6167617:doWork1,[(551,328)(551,376)(193,376)]) link(onEvent3,2147592:doEvent1,[]) } Add(HubEx,474126,189,455) { link(onEvent,9756378:doStop,[]) } Add(HubEx,2589270,483,490) { link(onEvent,13424793:doWork2,[]) } Add(Hub,7563060,490,343) { link(onEvent1,14469039:doEvent1,[(532,349)(532,384)]) link(onEvent2,3576775:doWork1,[(516,356)(516,404)(172,404)]) } Add(Hub,2912720,560,189) { link(onEvent1,9217681:doValue,[]) link(onEvent2,6908464:doEvent1,[(586,202)(586,262)(513,262)(513,321)]) } Add(Memory,9217681,665,189) { } Add(DoData,11893981,287,385) { link(onEventData,13054578:doValue,[]) link(Data,8701162:Var1,[(293,271)]) } Add(GetDataEx,8701162,665,266) { link(Data,9217681:Value,[]) } Add(Hub,15530002,504,448) { OutCount=3 link(onEvent3,6635518:doWork3,[(529,468)]) } Add(Memory,16027070,714,294) { Default=String(™) } Add(HubEx,6167617,189,420) { Angle=1 link(onEvent,474126:doWork1,[]) } Add(Hub,4553585,385,322) { OutCount=3 link(onEvent1,6167617:doWork3,[(432,328)(432,426)]) link(onEvent2,13424793:doWork1,[(501,335)]) link(onEvent3,10302019:doWork1,[(411,342)(411,396)(312,396)]) } Add(HubEx,13424793,497,490) { link(onEvent,10222821:doStop,[]) } Add(Hub,12386402,616,497) { link(onEvent1,6325602:doWork2,[]) link(onEvent2,3576775:doWork2,[(642,510)(642,551)(144,551)(144,454)]) } Add(HubEx,6325602,644,497) { link(onEvent,14096195:doData,[]) } Add(HubEx,15869128,372,294) { Angle=1 link(onEvent,4553585:doEvent1,[(376,328)]) } Add(HubEx,10302019,308,448) { link(onEvent,11465184:doStrCat,[]) } Add(Hub,6800315,294,448) { link(onEvent1,10302019:doWork2,[]) link(onEvent2,10222821:doTimer,[(490,461)(490,489)]) } Add(Hub,9969439,518,217) { OutCount=3 link(onEvent1,10580982:doWork1,[(648,223)]) link(onEvent2,3125751:doWork1,[(544,230)(544,340)(193,340)]) } Add(HubEx,3125751,189,448) { link(onEvent,9756378:doTimer,[]) } Add(DoData,6251023,469,140) { link(onEventData,3191492:doEvent1,[]) } Add(HubEx,10580982,644,462) { Angle=1 link(onEvent,4924429:doWork1,[]) } Add(HubEx,7198710,588,385) { link(onEvent,14836176:doWork2,[]) } Add(Hub,2147592,560,329) { link(onEvent1,7198710:doWork1,[(592,335)]) link(onEvent2,10580982:doWork2,[(610,342)(610,468)]) } Add(HubEx,3576775,168,448) { link(onEvent,5543584:doWork2,[]) } Add(HubEx,4924429,644,476) { Angle=1 link(onEvent,6325602:doWork1,[]) } Add(HubEx,14836176,595,385) { link(onEvent,2722415:doStrCat,[]) } Add(If_else,12482180,392,252) { Op2=String(™) link(onTrue,16103434:doWork1,[(767,258)]) link(onFalse,14347337:doCompare,[(432,265)(432,272)]) link(Op1,16027767:Var3,[(398,243)]) } Add(If_else,14347337,441,266) { Op2=String() link(onTrue,16103434:doWork2,[(632,272)(632,293)]) link(onFalse,954344:doEvent1,[]) link(Op1,16027767:Var2,[(447,256)(391,256)]) } Add(GetDataEx,16027767,385,238) { Angle=3 link(Data,15212095:Text,[(153,243)]) } Add(If_else,1362978,791,287) { Op2=Integer(0) link(onTrue,8727909:doEvent1,[]) link(Op1,2410886:Value,[]) } Add(HubEx,16103434,763,287) { link(onEvent,1362978:doCompare,[]) } Add(Memory,2410886,791,210) { Default=Integer(0) } Add(Hub,8727909,840,287) { link(onEvent1,16467541:doWork2,[(864,293)(864,349)]) link(onEvent2,12803848:doWork3,[(866,300)(866,314)]) } Add(HubEx,12803848,477,308) { Angle=1 link(onEvent,7563060:doEvent1,[(481,349)]) } Add(Hub,954344,497,273) { link(onEvent1,12803848:doWork1,[(523,279)(523,295)(481,295)]) link(onEvent2,16467541:doWork1,[(693,286)(693,342)]) } Add(HubEx,4421867,775,217) { Angle=3 link(onEvent,2410886:doValue,[(779,216)]) } Add(ChanelToIndex,16467541,875,336) { link(onIndex,4421867:doWork3,[(919,342)(919,284)(779,284)]) } Add(Hub,3191492,532,140) { link(onEvent1,15212095:doText,[(595,146)(595,170)(352,170)(352,153)]) link(onEvent2,5543584:doWork1,[(558,153)(558,302)(179,302)]) } Add(HubEx,5543584,175,448) { link(onEvent,3125751:doWork2,[]) } Add(Image,949681,637,42) { Left=280 Top=20 Width=240 Height=38 Visible=1 Picture=[ZIP5A00000078DA73F28D6280003320D600626628666490008BAB306082FFFFFFE3222100C80600FC261676] } Add(ScreenShort,5570705,252,224) { link(onCapture,1448288:doCopy,[(300,230)(300,111)]) link(Handle,15212095:Handle,[(258,212)(324,212)(324,239)(160,239)]) } Add(Image,1984488,399,49) { Left=15 Top=230 Width=493 Height=25 Visible=1 } Add(Img_Copy,1448288,315,105) { X=482 Y=2 Width=3 Height=3 link(onCopy,12059512:doEvent1,[(359,111)(359,55)]) } Add(Hub,12059512,371,49) { link(onEvent1,1984488:doLoad,[]) link(onEvent2,3084360:doEvent1,[]) } Add(MultiElementEx,3084360,441,56) { @Color=16733525 link(onResult,3238001:doEvent1,[]) } BEGIN_SDK Add(EditMultiEx,2952180,21,21) { WorkCount=#8:doEvent1| EventCount=#8:onResult| link(doEvent1,8338769:doEvent1,[(28,27)(28,62)]) } Add(Hashsum,3973248,280,70) { link(onResult,2952180:onResult,[(316,76)(316,27)]) } Add(BitmapStream,6694524,154,175) { link(Stream,8093012:Data1,[]) } Add(MemoryStream,1563871,154,49) { Point(doPosition) } Add(DoData,3585807,210,147) { link(onEventData,3973248:doHashsum,[(254,153)(254,76)]) link(Data,8093012:Data2,[(216,139)(167,139)]) } Add(GetData,8093012,154,98) { link(Data,1563871:Stream,[]) } Add(Hub,8338769,35,56) { OutCount=4 link(onEvent1,1563871:doClear,[]) link(onEvent2,14807159:doData,[(59,69)(59,125)]) link(onEvent3,6694524:doWrite,[(101,76)(101,188)]) link(onEvent4,3585807:doData,[(138,83)(138,153)]) } Add(DoData,14807159,70,119) { Data=Integer(0) link(onEventData,1563871:doPosition,[(111,125)(111,69)]) } Add(Icon,6684728,189,42) { @Hint=#5:#main| Icon=[ZIP7E04000078DAAD94CB4AC35018848FE00374E5DAA59097F0652A2E045D28BA71D32C04DD082EA41414155410441015046FD41B521B5A2FD81445A91AADD65BC5A0251DFF499B5AB514C19EF085E19F1902392751AA4E2E9F4FC96A54ADF54A35886A127CEE4489CBBB52CDF5EAD70250574B22C1164DD005434011A338D3AA75A3A1567F6CACC3BA5C0B216B6E000FA72ED49CD163A652373EDAE6376703C826D6814C12B83B066E0F0A50CB8C1E33CC96778FC6DBB593E96EEB3519066EE2C045B832E231C32C3B5EDF9CEAD4D3BB93F2AC4320310F988BC0F53EF07255809A337A9261961DAF7F36D363D8A928905C026213406A07B0A4130916A0E68C9E649865C7EBA7E67A81B7FBAFBCE8A7957E78BEAB7FF86EA7E8DF2C0400FBE91BC9E9AE92EFEA1FBEDB29FA99E53E23979677FEFE5AE221B1E9EDBDABCB3D66D9F1FACFAB03BA9D580672F69F60961DAFFF161ED4EC9D61CBC9C879713EAAC20CB3EC949F81F7ED21FF476C0ACEE33990772A428F19662B9D41676FD8EF4447ACFCC51690B5505AA239A3C74CD56F2812D4045D304AFB55D0BAEBD5F87BE51FE03F7C0234F06667] } END_SDK Add(MultiElementEx,1560840,686,98) { @Color=16733525 link(onResult,9297181:doValue,[]) } BEGIN_SDK Add(EditMultiEx,202538,21,21) { WorkCount=#8:doEvent1| EventCount=#8:onResult| link(doEvent1,5565575:doEvent1,[(28,27)(28,62)]) } Add(Hashsum,15229663,280,70) { link(onResult,202538:onResult,[(316,76)(316,27)]) } Add(BitmapStream,8446495,154,175) { link(Stream,13677585:Data1,[]) } Add(MemoryStream,1983970,154,49) { Point(doPosition) } Add(DoData,14667332,210,147) { link(onEventData,15229663:doHashsum,[(254,153)(254,76)]) link(Data,13677585:Data2,[(216,139)(167,139)]) } Add(GetData,13677585,154,98) { link(Data,1983970:Stream,[]) } Add(Hub,5565575,35,56) { OutCount=4 link(onEvent1,1983970:doClear,[]) link(onEvent2,4227098:doData,[(59,69)(59,125)]) link(onEvent3,8446495:doWrite,[(101,76)(101,188)]) link(onEvent4,14667332:doData,[(138,83)(138,153)]) } Add(DoData,4227098,70,119) { Data=Integer(0) link(onEventData,1983970:doPosition,[(111,125)(111,69)]) } Add(Icon,3264589,189,42) { @Hint=#5:#main| Icon=[ZIP7E04000078DAAD94CB4AC35018848FE00374E5DAA59097F0652A2E045D28BA71D32C04DD082EA41414155410441015046FD41B521B5A2FD81445A91AADD65BC5A0251DFF499B5AB514C19EF085E19F1902392751AA4E2E9F4FC96A54ADF54A35886A127CEE4489CBBB52CDF5EAD70250574B22C1164DD005434011A338D3AA75A3A1567F6CACC3BA5C0B216B6E000FA72ED49CD163A652373EDAE6376703C826D6814C12B83B066E0F0A50CB8C1E33CC96778FC6DBB593E96EEB3519066EE2C045B832E231C32C3B5EDF9CEAD4D3BB93F2AC4320310F988BC0F53EF07255809A337A9261961DAF7F36D363D8A928905C026213406A07B0A4130916A0E68C9E649865C7EBA7E67A81B7FBAFBCE8A7957E78BEAB7FF86EA7E8DF2C0400FBE91BC9E9AE92EFEA1FBEDB29FA99E53E23979677FEFE5AE221B1E9EDBDABCB3D66D9F1FACFAB03BA9D580672F69F60961DAFFF161ED4EC9D61CBC9C879713EAAC20CB3EC949F81F7ED21FF476C0ACEE33990772A428F19662B9D41676FD8EF4447ACFCC51690B5505AA239A3C74CD56F2812D4045D304AFB55D0BAEBD5F87BE51FE03F7C0234F06667] } END_SDK Add(DoData,2152687,637,98) { link(onEventData,1560840:doEvent1,[]) link(Data,949681:ImageBitmap,[]) } Add(If_else,9343013,546,84) { link(onTrue,16172398:doEvent1,[]) link(onFalse,5884325:doCompare,[(814,97)(814,167)]) link(Op1,15645309:Value,[]) link(Op2,9297181:Value,[(559,72)(650,72)(650,142)(741,142)]) } Add(Hub,3238001,504,56) { link(onEvent1,15645309:doValue,[(532,62)(532,41)]) link(onEvent2,9343013:doCompare,[(532,69)(532,90)]) } Add(Message,1374549,917,105) { } Add(Memory,15645309,546,35) { } Add(Memory,9297181,735,98) { } Add(Hub,11413087,847,238) { link(onEvent1,13182303:doText,[(871,244)(871,196)]) link(onEvent2,7068398:doText,[]) } Add(StrCat,11465184,343,448) { Str2=" " link(onStrCat,11139737:doEvent1,[]) link(Str1,13054578:Value,[]) } Add(DoData,2413014,784,147) { Data=Integer(0) link(onEventData,8459907:doWork2,[(849,153)(849,258)]) } Add(Hub,784129,735,147) { link(onEvent1,2413014:doData,[]) link(onEvent2,2909197:doData,[(770,160)(770,97)]) } Add(DoData,2909197,791,91) { Data=Integer(1) link(onEventData,3091783:doWork2,[(853,97)(853,202)]) } Add(HubEx,1644162,938,252) { link(onEvent,15869128:doWork1,[(981,258)(981,278)(376,278)]) } Add(HubEx,7162222,959,245) { link(onEvent,15212095:doSetFocus,[(982,251)(982,227)(352,227)(352,167)]) } Add(DoData,16061950,721,168) { Data=Integer(0) link(onEventData,3091783:doWork1,[(858,174)]) } Add(HubEx,3091783,854,196) { link(onEvent,13182303:doVisible,[(871,202)(871,203)]) } Add(Hub,2488186,686,168) { link(onEvent1,16061950:doData,[]) link(onEvent2,7776075:doData,[(714,181)(714,223)]) } Add(DoData,7776075,728,217) { Data=Integer(1) link(onEventData,8459907:doWork1,[(865,223)]) } Add(HubEx,8459907,861,252) { link(onEvent,7068398:doVisible,[]) } Add(Hub,3855186,455,182) { link(onEvent1,2912720:doEvent1,[(485,188)(485,195)]) link(onEvent2,5570705:doCapture,[(481,195)(481,213)(240,213)(240,230)]) } Add(Hub,16172398,595,84) { link(onEvent1,4803227:doCompare,[(661,90)(661,55)]) link(onEvent2,784129:doEvent1,[(672,97)(672,153)]) } Add(DoData,7780252,1057,49) { link(onEventData,15020610:doValue,[]) link(Data,8405834:Var3,[(1063,30)(559,30)(559,204)]) } Add(If_else,4803227,854,49) { Op2=Integer(0) link(onTrue,6082126:doEvent1,[]) link(Op1,8106407:Value,[(860,41)(909,41)]) } Add(Memory,8106407,903,0) { Default=Integer(0) } Add(DoData,475114,980,70) { Data=Integer(1) link(onEventData,14304275:doWork3,[(1024,76)(1024,45)(842,45)]) } Add(Hub,6082126,945,49) { link(onEvent1,475114:doData,[(969,55)(969,76)]) link(onEvent2,7780252:doData,[(1008,62)(1008,55)]) } Add(If_else,5884325,1050,161) { Type=3 link(onTrue,11159623:doEvent1,[]) link(Op1,8405834:Var1,[(1056,149)(412,149)]) link(Op2,15020610:Value,[(1063,121)(1119,121)]) } Add(GetDataEx,8405834,406,199) { Angle=3 link(Data,15212095:Position,[(167,204)]) } Add(Hub,11159623,1113,161) { link(onEvent1,2488186:doEvent1,[(1210,167)(1210,191)(674,191)(674,174)]) link(onEvent2,10594574:doData,[(1134,174)(1134,181)]) } Add(DoData,10594574,1141,175) { Data=Integer(0) link(onEventData,14304275:doWork1,[(1185,181)(1185,13)]) } Add(HubEx,14304275,838,7) { Angle=3 link(onEvent,8106407:doValue,[(842,6)]) } Add(Memory,15020610,1113,49) { } Add(Label,13182303,882,190) { Left=20 Top=100 Width=493 Height=25 Color=0 Font=[Univers,11,1,255,204] Visible=1 Ctl3D=0 Caption="™" AutoSize=1 Alignment=1 Point(onMouseDown) Point(Handle) Point(onKillFocus) Point(onSetFocus) Point(doVisible) link(onMouseDown,7162222:doWork1,[(963,203)]) link(onSetFocus,1644162:doWork1,[(942,217)]) }
------------ Дoбавленo в 22.17:
вся проблема в том, что когда коретка доходит до границы, текст должен смещаться влево, как в стандартном EDIT
|