Я писал(а):
форматировать введенные данные после какого-то события однозначно определяющем окончание ввода.Как вариант code_36853.txt
------------ Дoбавленo в 15.09:
Чего-то выше, я, много "нагородил"
Add(MainForm,2953706,238,63)
{
Width=311
Height=163
Point(onKeyDown)
link(onKeyDown,1435135:doCompare,[])
}
Add(Edit,5821213,84,63)
{
Left=20
Top=5
Width=115
Text="0,00"
Alignment=1
ClearAfterEnter=1
Point(onKillFocus)
Point(doColor)
Point(doSetFocus)
Point(onSetFocus)
Point(doSelectAll)
link(onEnter,6749064:doWork2,[])
link(onKillFocus,6749064:doWork3,[])
link(onSetFocus,5821213:doSelectAll,[(123,90)(123,111)(74,111)(74,97)])
}
Add(Edit,7535181,84,177)
{
Left=20
Top=30
Width=115
Text="0,00"
Alignment=1
ClearAfterEnter=1
Point(doColor)
Point(doSetFocus)
Point(doSelectAll)
Point(onKillFocus)
Point(onSetFocus)
link(onEnter,7438632:doWork2,[])
link(onKillFocus,7438632:doWork3,[])
link(onSetFocus,7535181:doSelectAll,[(123,204)(123,230)(74,230)(74,211)])
}
Add(MultiElementEx,6749064,140,70)
{
@IsLib=True
link(onEvent1,5821213:doText2,[(179,76)(179,55)(74,55)(74,76)])
link(Data,5821213:Text,[(146,61)(131,61)(131,121)(90,121)])
link(onEvent,5821213:doColor,[(186,83)(186,139)(60,139)(60,83)])
link(onTimer,5821213:doSetFocus,[(179,90)(179,132)(67,132)(67,90)])
}
BEGIN_SDK
Add(EditMultiEx,7661923,21,21)
{
WorkCount=#7:doWork2|7:doWork3|
EventCount=#8:onEvent1|7:onEvent|7:onTimer|
DataCount=#4:Data|
Width=454
Height=179
link(doWork2,2184768:doWork1,[(66,27)])
link(doWork3,2184768:doWork2,[])
}
Add(RE_Check,10426314,95,70)
{
Expression="((-)?\d+(\.|,)?(\d)?(\d)?)?"
MakeExt(Expression,,Expression)
link(onMatch,8365158:doReplace,[])
link(onDismatch,16087428:doEvent1,[(151,83)(151,132)])
link(Str,15499504:Var2,[])
}
Add(Hub,4802727,347,70)
{
link(onEvent1,7661923:onEvent1,[(368,76)(368,27)])
link(onEvent2,6341415:doData,[])
}
Add(DoData,6341415,375,77)
{
Data=Integer(16777215)
link(onEventData,700273:doWork2,[])
}
Add(GetDataEx,15499504,95,49)
{
Angle=3
link(Data,7661923:Data,[(27,54)])
}
Add(DoData,2008149,375,126)
{
Data=Integer(9145343)
link(onEventData,700273:doWork3,[(425,132)])
}
Add(HubEx,700273,421,77)
{
Angle=3
link(onEvent,7661923:onEvent,[(425,34)])
}
Add(Hub,16087428,165,126)
{
link(onEvent1,2008149:doData,[])
link(onEvent2,5618354:doTimer,[])
}
Add(Timer,5618354,193,133)
{
Interval=25
Enable=1
AutoStop=1
link(onTimer,7661923:onTimer,[(368,139)(368,167)(431,167)(431,41)])
}
Add(HubEx,2184768,62,28)
{
Angle=1
link(onEvent,10426314:doCheck,[(66,76)])
}
Add(ConvertorEx,5984772,203,70)
{
Mode=15
link(onResult,2975901:doTrim,[])
}
Add(Replace,16672316,298,70)
{
SubStr="."
DestStr=","
link(onReplace,4802727:doEvent1,[])
}
Add(Replace,8365158,158,70)
{
SubStr=","
DestStr="."
link(onReplace,5984772:doConvert,[])
link(Str,15499504:Var3,[(164,54)])
}
Add(Trim,2975901,252,70)
{
Char=" "
Mode=1
link(onTrim,16672316:doReplace,[])
}
END_SDK
Add(If_else,1435135,287,84)
{
Op2=Integer(13)
link(onTrue,10528607:doPress,[])
}
Add(KeyEvent,10528607,343,84)
{
Code=9
}
Add(MultiElementEx,7438632,154,184)
{
elink(6749064)
link(onEvent1,7535181:doText2,[(193,190)(193,167)(74,167)(74,190)])
link(Data,7535181:Text,[(160,173)(146,173)(146,222)(90,222)])
link(onEvent,7535181:doColor,[(200,197)(200,160)(67,160)(67,197)])
link(onTimer,7535181:doSetFocus,[(193,204)(193,237)(67,237)(67,204)])
}
Add(Edit,16736484,86,278)
{
Left=20
Top=55
Width=115
Text="0,00"
Alignment=1
ClearAfterEnter=1
Point(doColor)
Point(doSetFocus)
Point(doSelectAll)
Point(onKillFocus)
Point(onSetFocus)
link(onEnter,10736639:doWork2,[])
link(onKillFocus,10736639:doWork3,[])
link(onSetFocus,16736484:doSelectAll,[(125,305)(125,331)(76,331)(76,312)])
}
Add(MultiElementEx,10736639,147,285)
{
elink(6749064)
link(onEvent1,16736484:doText2,[(186,291)(186,272)(74,272)(74,291)])
link(Data,16736484:Text,[(153,278)(139,278)(139,320)(92,320)])
link(onEvent,16736484:doColor,[(193,298)(193,265)(67,265)(67,298)])
link(onTimer,16736484:doSetFocus,[(186,305)(186,342)(67,342)(67,305)])
}
Add(Edit,4684327,86,383)
{
Left=20
Top=80
Width=115
Text="0,00"
Alignment=1
ClearAfterEnter=1
Point(doColor)
Point(doSetFocus)
Point(doSelectAll)
Point(onKillFocus)
Point(onSetFocus)
link(onEnter,14639144:doWork2,[])
link(onKillFocus,14639144:doWork3,[])
link(onSetFocus,4684327:doSelectAll,[(125,410)(125,436)(76,436)(76,417)])
}
Add(MultiElementEx,14639144,147,390)
{
elink(6749064)
link(onEvent1,4684327:doText2,[(186,396)(186,377)(74,377)(74,396)])
link(Data,4684327:Text,[(153,383)(139,383)(139,425)(92,425)])
link(onEvent,4684327:doColor,[(193,403)(193,370)(67,370)(67,403)])
link(onTimer,4684327:doSetFocus,[(186,410)(186,447)(67,447)(67,410)])
}
Add(Edit,6450974,261,173)
{
Left=155
Top=5
Width=115
Text="0,00"
Alignment=1
ClearAfterEnter=1
Point(doColor)
Point(doSetFocus)
Point(doSelectAll)
Point(onKillFocus)
Point(onSetFocus)
link(onEnter,4963690:doWork2,[])
link(onKillFocus,4963690:doWork3,[])
link(onSetFocus,6450974:doSelectAll,[(300,200)(300,226)(251,226)(251,207)])
}
Add(MultiElementEx,4963690,322,180)
{
elink(6749064)
link(onEvent1,6450974:doText2,[(361,186)(361,167)(249,167)(249,186)])
link(Data,6450974:Text,[(328,173)(314,173)(314,215)(267,215)])
link(onEvent,6450974:doColor,[(368,193)(368,160)(242,160)(242,193)])
link(onTimer,6450974:doSetFocus,[(361,200)(361,237)(242,237)(242,200)])
}
Add(Edit,2217913,261,278)
{
Left=155
Top=30
Width=115
Text="0,00"
Alignment=1
ClearAfterEnter=1
Point(doColor)
Point(doSetFocus)
Point(doSelectAll)
Point(onKillFocus)
Point(onSetFocus)
link(onEnter,4378922:doWork2,[])
link(onKillFocus,4378922:doWork3,[])
link(onSetFocus,2217913:doSelectAll,[(300,305)(300,331)(251,331)(251,312)])
}
Add(MultiElementEx,4378922,322,285)
{
elink(6749064)
link(onEvent1,2217913:doText2,[(361,291)(361,272)(249,272)(249,291)])
link(Data,2217913:Text,[(328,278)(314,278)(314,320)(267,320)])
link(onEvent,2217913:doColor,[(368,298)(368,265)(242,265)(242,298)])
link(onTimer,2217913:doSetFocus,[(361,305)(361,342)(242,342)(242,305)])
}
Add(Edit,428581,261,383)
{
Left=155
Top=55
Width=115
Text="0,00"
Alignment=1
ClearAfterEnter=1
Point(doColor)
Point(doSetFocus)
Point(doSelectAll)
Point(onKillFocus)
Point(onSetFocus)
link(onEnter,11985173:doWork2,[])
link(onKillFocus,11985173:doWork3,[])
link(onSetFocus,428581:doSelectAll,[(300,410)(300,436)(251,436)(251,417)])
}
Add(MultiElementEx,11985173,322,390)
{
elink(6749064)
link(onEvent1,428581:doText2,[(361,396)(361,377)(249,377)(249,396)])
link(Data,428581:Text,[(328,383)(314,383)(314,425)(267,425)])
link(onEvent,428581:doColor,[(368,403)(368,370)(242,370)(242,403)])
link(onTimer,428581:doSetFocus,[(361,410)(361,447)(242,447)(242,410)])
}