Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!sdd.hp.com!hplabs!hpda!hpcuhb!hpcilzb!bazavan From: bazavan@hpcilzb.HP.COM (Valentin Bazavan) Newsgroups: comp.windows.x.motif Subject: Re: Positioning dialogs, etc Message-ID: <17100003@hpcilzb.HP.COM> Date: 13 Nov 90 15:16:28 GMT References: <108384@convex.convex.com> Organization: HP Design Tech Center - Santa Clara, CA Lines: 21 Here is an answer for your first question: Set the XmNdefaultPosition to False when you create the dialog. E.g.: n = 0; . . XtSetArg(args[n], XmNdefaultPosition, False); n++; Widget dialog = XmCreateDialog(parent, "blabla", args, n); Then Position x, y; /* get root-relative x and y coordinates of the parent */ XtTranslateCoords(parent, 0, 0, &x, &y); /* move the dialog to the position you want relative to parent's x, y */ XtMoveWidget(dialog, x+100, y-100); Valentin Bazavan vbazavan@hpdtc.hp.com