On Jun 26, 2004, at 4:51 PM, BrucesFB3@... wrote: > After creating a window in TWM I noticed something odd about the > coordinates > in the SETRECT call. The numbers don't seem to have anything to do > with the > window I created, but YET IT DISPLAYS PROPERLY when run.... What is > happening > here? My window was 250 X 300 pixels. All these numbers are larger.... > Bernie? > > > DEF NewWindowPositionMethod(_kWindowCenterOnMainScreen) > SETRECT(r, 412, 254, 612, 554) > APPEARANCE WINDOW -_RadioWnd,¬ > "Radio", @r,¬ > _kDocumentWindowClass, wa > DEF NewWindowPositionMethod(0) > > Bruce Gottshall > > -- Bruce, Bernie is probably sleeping over there in the UK, so I thought I'd jump in and respond (and I'm getting to your other questions too---just got home from a full day) If you look at the coordinates for the window in TWM, you might notice they are specified as LTWH meaning left top width and height (since this is the default option). The SETRECT toolbox parameters are LTRB (left top right and bottom). The popup option that allows a choice of either the standard LTRB format or the more intuitive LTWH. .TWM automatically converts the width and height to right/bottom and that is why the numbers are different. Brian > To unsubscribe, send ANY message to: > futurebasic-unsubscribe@...