Make(cnet) ver(4.04 build 185) Add(EntryPoint,2953706,21,28) { Width=545 Height=382 Name="form" } Add(Graphics,13178970,63,28) { Name="gr" Constructor=1 } Add(Rectangle,12405599,182,28) { Height=200 Width=200 X=1 Y=1 } Add(GraphicsContainer,2720372,126,77) { Graphics="gr" Unit="gu" Point(doBeginContainer2) link(srcRect,9840201:Var1,[(139,68)]) link(dstRect,15871474:Rectangle,[]) } Add(FillRectangle,3046048,168,126) { Graphics="gr" Brush="br_red" Point(rect) link(rect,10591094:Var2,[]) } Add(SolidBrush,13184181,168,161) { Name="br_red" Color=255 } Add(Rectangle,15871474,140,28) { Height=150 Width=150 X=100 Y=100 } Add(GetDataEx,9840201,182,63) { link(Data,12405599:Rectangle,[]) } Add(FillRectangle,14960185,126,140) { Graphics="gr" Brush="br_green" Point(rect) link(rect,10591094:Var1,[(146,117)]) } Add(GetDataEx,10591094,182,112) { link(Data,9840201:Var2,[]) } Add(SolidBrush,16428941,126,175) { Name="br_green" Color=32768 } Add(InfoTip,11646323,224,28) { Info=#41:The code performs the following actions: |0:|79:Creates two rectangles to specify a scale transformation for the new container.|0:|61:Opens the new graphics container and saves the old container.|0:|71:Fills a red rectangle in the (scaled coordinates of the) new container.|0:|58:Closes the new container and restores the saved container.|0:|77:Fills a green rectangle (to the unscaled coordinates) of the saved container.|0:|70:The result is a green rectangle that overlies a smaller red rectangle.|0:|0:| Frame=1 Transparent=1 HAlign=0 Width=372 Height=186 } Add(Hub,10450106,63,70) { OutCount=4 link(onEvent1,2720372:doBeginContainer2,[(101,76)(101,97)]) link(onEvent2,3046048:doFillRectangle,[(96,83)(96,132)]) link(onEvent3,2720372:doEndContainer,[]) link(onEvent4,14960185:doFillRectangle,[(89,97)(89,146)]) } Add(Button,15721421,21,70) { Left=10 Top=5 Point(onClick) link(onClick,10450106:doEvent1,[]) } Add(GraphicsUnit,9363357,21,112) { Name="gu" GraphicsUnit=2 }