Вверх ↑
Ответов: 3514
Рейтинг: 184
#1: 2007-04-06 18:15:13 ЛС | профиль | цитата
Вот это
code_1227.txt
Выдаёт "рантайм".

Вот это:
Add(MainForm,9847516,98,119)
{
Left=20
Top=105
link(onCreate,3216219:doWork1,[(135,160)(121,160)])
}
Add(ChildGroupBox,3216219,161,154)
{
link(onEvent1,7543089:doText,[])
}
BEGIN_SDK
Add(EditMulti,2042005,3,3)
{
EventCount=1
WorkCount=1
Width=580
Height=564
link(doWork1,3279512:doEvent1,[(40,9)(40,370)])
}
Add(GroupBox,9098072,28,504)
{
Left=10
Top=10
Width=248
Height=47
Caption="Настройки шрифта"
Point(doVisible)
}
Add(Hub,5133236,301,133)
{
InCount=2
link(onEvent1,7245191:doValue,[])
link(onEvent2,3151946:doWork1,[(343,146)(343,120)(189,120)(189,139)])
}
Add(Edit,2978100,196,14)
{
Left=35
Top=15
Width=35
Hint="Размер шрифта"
Text="8"
ReadOnly=0
}
Add(UpDown,7492878,112,14)
{
Left=70
Top=15
Max=15
Min=5
Position=8
link(onPosition,3371349:doEvent1,[])
}
Add(FontBox,15495154,154,231)
{
Left=95
Top=15
Width=145
Height=21
Hint="Шрифт"
Font="MS Sans Serif"
link(onResult,86049:doEvent1,[(257,237)(257,356)])
link(Font,6780373:Value,[])
}
Add(Font,10866379,357,350)
{
PColor(Color,255)
PColor(Name,255)
link(onFont,9582900:doEvent1,[])
link(Size,12604166:Data2,[(363,189)(209,189)])
link(Color,6868672:Data2,[(370,272)(370,272)])
link(Name,11609399:Data2,[(377,338)(167,338)])
link(Style,3028834:Value,[])
}
Add(ChildPanel,3151946,203,133)
{
link(onEvent1,3402259:doOpen,[(257,139)(229,139)])
}
BEGIN_SDK
Add(EditMulti,4001230,3,3)
{
EventCount=1
WorkCount=1
link(doWork1,3510659:doColor,[(19,9)(19,118)])
}
Add(Panel,3510659,35,105)
{
Left=10
Top=15
Width=20
Height=20
Color=0
Hint="Цвет шрифта"
Point(doColor)
link(onClick,4001230:onEvent1,[(185,111)(185,9)])
}
END_SDK
Add(ColorDialog,3402259,252,133)
{
link(onSelect,5133236:doEvent1,[])
}
Add(Memory,7245191,357,133)
{
}
Add(Hub,86049,315,350)
{
InCount=3
OutCount=1
link(onEvent1,10866379:doFont,[])
}
Add(Hub,3371349,154,14)
{
InCount=2
OutCount=1
link(onEvent1,2978100:doText,[])
}
Add(Memory,3028834,378,273)
{
Default=String(normal)
}
Add(Ini,11170901,182,469)
{
FileName="options.ini"
Section="Шрифт"
Key="Размер"
Type=1
link(onResult,9509372:doEvent1,[(224,475)(224,247)(53,247)(53,20)])
link(Value,9885386:Var,[])
}
Add(Ini,10176293,189,406)
{
FileName="options.ini"
Section="Шрифт"
Key="Цвет"
Type=1
link(onResult,5133236:doEvent2,[(290,412)(290,146)])
link(Value,1680353:Var,[(216,392)(216,392)])
}
Add(GetData,6868672,357,175)
{
link(Data,7245191:Value,[])
}
Add(Ini,5523800,161,371)
{
FileName="options.ini"
Section="Шрифт"
Key="Шрифт"
Type=1
link(onResult,6780373:doValue,[(217,377)(217,296)(137,296)(137,195)])
link(Value,11609399:Data1,[(188,356)(160,356)])
}
Add(GetData,11609399,154,273)
{
link(Data,15495154:CurrentFont,[])
}
Add(GetData,12604166,196,63)
{
link(Data,2978100:Text,[])
}
Add(Hub,9582900,399,350)
{
link(onEvent1,2042005:onEvent1,[(437,356)(437,9)])
link(onEvent2,4600428:doEvent1,[(434,363)(434,401)(67,401)(67,433)])
}
Add(Hub,4600428,77,427)
{
OutCount=3
link(onEvent1,5523800:doWrite,[(128,433)(128,384)])
link(onEvent2,10176293:doWrite,[(149,440)(149,419)])
link(onEvent3,11170901:doWrite,[(145,447)(145,482)])
}
Add(Hub,3279512,77,364)
{
OutCount=3
PColor(onEvent1,65280)
PColor(onEvent2,4259584)
PColor(onEvent3,4259584)
link(onEvent1,11170901:doRead,[(145,370)(145,475)])
link(onEvent2,10176293:doRead,[(149,377)(149,412)])
link(onEvent3,5523800:doRead,[(135,384)(135,377)])
}
Add(Memory,6780373,154,189)
{
link(onData,15495154:doSetFont,[(196,195)(196,226)(144,226)(144,237)])
}
Add(Hub,9509372,63,14)
{
link(onEvent1,7492878:doPosition,[])
link(onEvent2,3371349:doEvent2,[])
}
Add(LineBreak,9045154,357,224)
{
Type=1
link(Data,6868672:Data1,[(363,219)(363,219)])
Primary=[1680353,-147,147]
}
Add(LineBreak,13749826,196,105)
{
Type=1
link(Data,12604166:Data1,[(202,100)(202,100)])
Primary=[9885386,7,336]
}
END_SDK
Add(Label,7543089,210,154)
{
Left=60
Top=105
Caption="Текст"
}
не правильно грузит.
Как я понял в рантайме виноват Edit. А вот как исправить второй пример?
карма: 0
0
файлы: 1code_1227.txt [4.6KB] [236]