code_35438.txt
------------ Дoбавленo в 17.05:
решил так ,спасибо nesco
Add(MainForm,2953706,203,203)
{
Width=477
Height=476
link(onCreate,14932030:doEvent1,[])
}
Add(PaintBox,13572165,434,112)
{
Left=15
Top=65
Width=435
Height=360
Color=16777215
Layout="horz"
WidthScale=100
HeightScale=100
ClearBeforeDraw=0
link(onBeforeDraw,12239255:doWork2,[])
}
Add(Printer,1749426,322,63)
{
Point(doSettings)
link(onPrint,13696494:doEvent1,[])
}
Add(Button,14750884,203,70)
{
Left=20
Top=20
Width=60
Height=30
Color=30
Layout="vert"
Caption="Print"
link(onClick,1749426:doPrintDlg,[])
}
Add(Hub,8274976,287,147)
{
link(onEvent1,3366320:doData,[])
link(onEvent2,5259618:doWork3,[(399,160)(399,244)])
}
Add(DoData,3366320,322,147)
{
link(onEventData,2237615:doWork2,[])
link(Data,1749426:Context,[])
}
Add(Memory,13584946,567,147)
{
}
Add(Hub,14932030,294,217)
{
OutCount=3
link(onEvent1,1530898:doData,[])
link(onEvent2,5259618:doWork1,[])
link(onEvent3,13572165:doRefresh,[(371,237)(371,118)])
}
Add(DoData,1530898,434,217)
{
link(onEventData,2237615:doWork3,[(480,223)])
link(Data,13572165:Bitmap,[])
}
Add(HubEx,2237615,476,147)
{
link(onEvent,13584946:doValue,[])
}
Add(DoData,13697224,490,112)
{
link(onEventData,15557505:doDraw,[(544,118)(544,223)])
}
Add(ChanelToIndex,5259618,497,224)
{
Count=3
link(onIndex,15557505:doDrawSource,[])
}
Add(HubEx,12239255,475,112)
{
link(onEvent,13697224:doData,[])
}
Add(DocumentTemplate,15557505,567,217)
{
DrawSource=2
Name="MainPage"
Point(doDrawSource)
link(Bitmap,13584946:Value,[])
}
BEGIN_SDK
Add(Print_Table,15348492,32,97)
{
Name="mtable"
X=35
Y=100
Width=357
Height=973
Columns=#13:Process|161|0|10:Class|91|0|11:Handle|70|0|
HeadFont=[MS Sans Serif,8,1,0,1]
Cells=#3:1|||3:2|||3:3|||3:4|||3:5|||3:6|||3:7|||
CellBackColor=12639424
CBorderColor=32896
Left=5
RowHeight=20
Spacing=1
TBorderStyle=5
TableTrans=0
}
END_SDK
Add(Hub,13696494,378,63)
{
link(onEvent1,8274976:doEvent1,[(404,69)(404,118)(268,118)(268,153)])
link(onEvent2,12239255:doWork1,[(479,76)])
}