Thank you, Mars. I will try this. Osamu Shigematsu >The tricky part is going the other way. You have to build the window >invisibly first, so that it has a structure region, then do this: > >1) Get the new window's structure region's bounding box >2) Get the window's portRect >3) Convert the portRect into global coordinates >4) Subtract as necessary to get the width of the window's border >5) Inset the saved bounding-box frame until it sits where you want it >6) Add the border width values to the new bounding-box frame to get the >new inner frame >7) Set the new inner frame as the window's contents. ************************************************************ * Osamu Shigematsu * * mail: shige@... / a1297991@... * * homepage : http://www.ravi.ne.jp/FBII/ * ************************************************************