Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!ames!think!husc6!endor!kochhar From: kochhar@endor.harvard.edu (Sandeep Kochhar) Newsgroups: comp.windows.x Subject: Geometry, resources, etc. Keywords: X11R4, twm, Xaw (R3) Message-ID: <2253@husc6.harvard.edu> Date: 17 Mar 90 19:22:14 GMT Sender: news@husc6.harvard.edu Reply-To: kochhar@endor.harvard.edu (Sandeep Kochhar) Distribution: usa Organization: Aiken Computation Lab Harvard, Cambridge, MA Lines: 44 I have a client that creates two toplevel windows using the following sequence: toplevel = XtInitialize("main", "Demo", NULL, ZERO, &argc, argv); . . . Atoplevel = XtCreateApplicationShell("atop", topLevelShellWidgetClass, ...); . . . Btoplevel = XtCreateApplicationShell("atop", topLevelShellWidgetClass, ...); Here are my two questions: 1. I am having trouble specifying resources for the Atop and Btop widgets separately. e.g. -xrm '*font: courb12' makes all the fonts in Atop's subwindows and Btop's subwindows courb12. However, if I want, say courb12 in A and 9x15 in B, I tried -xrm '*atop*font:courb12' -xrm '*btop*font:9x15' but nothing happened. What's the way to include atop and btop in the resource hierarchy? 2. In the topLevelShellWidgetClass widget (e.g. Atoplevel above), if I set the XtNgeometry resource to "+100+100", the windows show up at (100,100) as I expected. However, I couldn't get the windows to show up at (100,100) using XtNx and XtNy alone. Here's my question: why does XtNgeometry work, but XtNx and XtNy don't? Thanks Sandeep Kochhar (617) 495-3988 mail: kochhar@harvard.harvard.edu Harvard University kochhar@harvard.csnet 33 Oxford st, kochhar@harvard.uucp Cambridge, MA 02138 kochhar@harvard.bitnet Fax: (617) 495-9837