Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!sdd.hp.com!spool.mu.edu!uunet!math.fu-berlin.de!uniol!unido!laura!tommy!klute From: klute@tommy.informatik.uni-dortmund.de (Rainer Klute) Newsgroups: comp.windows.x Subject: Re: Design problem in XtVaGetApplicationResources Message-ID: <3114@laura.UUCP> Date: 19 Mar 91 17:39:03 GMT References: <3108@laura.UUCP> <12721@adobe.UUCP> Sender: news@laura.UUCP Reply-To: klute@tommy.informatik.uni-dortmund.de (Rainer Klute) Organization: University of Dortmund, Germany Lines: 30 In article <12721@adobe.UUCP>, asente@adobe.com (Paul Asente) writes: |> In Xt, you can't fetch database resources before opening a display because |> there is no database to fetch the resources from until after you open a |> display. You could add a new routine that fetched resources from |> the display's database before creating any widgets on the display, but it |> wouldn't solve your problem. |> |> What database would you expect the resources to be fetched from without the |> context of the display? You're probably thinking the .Xdefaults file, |> but Xt |> normally gets the contents of the .Xdefaults file from the display, not |> from |> the file itself. Who says that a database has to have something to do with a display? Sure, the server's database is the one which is most frequently referenced. But first of all a database is a data structure on the client side. Entries can be made from various sources: from the command line, from files, from strings - where an example of such a string might be the server's RESOURCE_MANAGER property. I hope I have made clear that from a database's point of view there is no inherent relation between the database and an X server. Xt should not oblige such a relation, forcing the user to use the Xrm primitives. Ok? -- Dipl.-Inform. Rainer Klute klute@irb.informatik.uni-dortmund.de Univ. Dortmund, IRB klute@unido.uucp, klute@unido.bitnet Postfach 500500 |)|/ Tel.: +49 231 755-4663 D-4600 Dortmund 50 |\|\ Fax : +49 231 755-2386