Path: utzoo!attcan!uunet!husc6!rutgers!gatech!mcnc!duke!dukvlsi3!aw From: aw@dukvlsi3.cs.duke.edu (Angus Wang) Newsgroups: comp.windows.x Subject: Resource Retrieval & Usage problem Keywords: resource database, problem, X11R2 Message-ID: <12146@duke.cs.duke.edu> Date: 3 Aug 88 16:08:12 GMT Sender: news@duke.cs.duke.edu Lines: 33 Can anyone tell me why this does not work as I think it is suppose to? I am working on a text editor that allows you to open another text window from the one you are currently working in and pipe things from one to the other. I would like to be able to read a resource file and specify colors and positions for each window that is opened. Window A is the start up window, so I would like to specify in a resource file ${HOME}/.SigEdrc the following: SigEd*VPaneA.x: 200 SigEd*VPaneA.y: 0 SigEd*VPaneB.x: 220 SigEd*VPaneB.y: 20 SigEd*VPaneC.x: 240 SigEd*VPaneC.y: 40 SigEd*VPaneD.x: 260 SigEd*VPaneD.y: 60 SigEd*VPaneE.x: 280 SigEd*VPaneE.y: 80 ... etc I am using the following routine to read in the database and can print it backout in ASCII but I need to specify when to use these resources some how. ... /* Load resources. */ db = XrmGetFileDatabase(fname); ... ======================================================================= UUCP : {ihnp4, decvax}!duke!aw CSNET: aw@romeo ARPA : aw@romeo.cs.duke.edu