Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!news.cs.indiana.edu!nstn.ns.ca!aucs.acadiau.ca!871579l From: 871579l@aucs.AcadiaU.ca (Todd Lowe) Newsgroups: comp.windows.open-look Subject: Window (frame) placement problems Message-ID: <1991Mar4.143744.8224@aucs.AcadiaU.ca> Date: 4 Mar 91 14:37:44 GMT Reply-To: 871579l@aucs.acadiau.ca (Todd Lowe) Distribution: na Organization: School of Computer Science, Acadia Univ., Nova Scotia Lines: 40 I'm having a few problems getting x-view to put my windows where I want them. I want the first to open anywhere, but the second to open directly below it on the display. I'm trying: frame = (Frame)xv_create(NULL, FRAME, FRAME_LABEL, argv[0], FRAME_SHOW_FOOTER,TRUE, NULL); This creates my first frame fine. Then I create a panel and some buttons on it and call: windowfit(panel);windowfit(frame); After this I create another frame: subframe = (Frame)xv_create(frame, FRAME, FRAME_LABEL, "Command Output:", XV_X, xv_get(frame,XV_X), XV_Y, xv_get(frame,XV_Y)+xv_get(frame,XV_HEIGHT), XV_WIDTH, xv_get(frame,XV_WIDTH), XV_HEIGHT, xv_get(frame,XV_HEIGHT), FRAME_SHOW_FOOTER, TRUE, XV_SHOW, TRUE, NULL); I want this 'subframe' to be the same size as frame and be placed directly below it. (X possition the same, but Y possition lower on the screen by frame's height.) It does get the correct size, but both frames are displayed in random(?) possitions rather than the 2nd being displayed relative to the frist. Any help with this problem would be appreciated. -Todd Lowe 871579l@aucs.acadiaU.CA todd@falcon.acadiaU.CA