> Hi, > > I'm trying to figure out how, other than trial and error, I can get the > sized of a window's frame and title, outside of my content area. > > The Window statement sets the rect of the content area, but if I want to > fill (or nearly fill) the screen with a window without having its title > or edges bleeding offscreen, how do I calculate the size to specify? > > I know about deducting {_mbarHeight} from the screen rect, but that > doesn't tell me anything about the window's title bar and frame. > > TIA, > 0"0 > =J= a y > " DIM WindowRef& DIM WindowRect.8 WINDOW 1 GET WINDOW 1, WindowRef& WindowRect;8 = [[WindowRef& + _structRgn]] + _rgnBBox PRINT "Window height: "; PRINT WindowRect.bottom - WindowRect.top PRINT PRINT "Window width: "; PRINT WindowRect.right - WindowRect.left DO UNTIL FN BUTTON Sylvain Guillemette --- Email: Sylvain@... Web: http://www.MacBrowse.com