Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!HPWARF.HP.COM!jollyc From: jollyc@HPWARF.HP.COM (Jolly Chen) Newsgroups: comp.windows.x.motif Subject: Re: optimization / speedups Message-ID: <9008161528.AA11918@hpwarf.HP.COM> Date: 16 Aug 90 15:28:30 GMT References: <9008160310.AA05073@alphalpha.com> Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 27 > This is actually a more general Intrinsics question, but I might > as well start here. Is there any way to create a wildcard > resource from within my application (e.g. at application startup > add "*foreground: polkadot")? Secondly, is there anyway for > my application to check and see if a particular resource has > been defined, so that it can set the resource only if the user > has not? Check out the Xrm calls in Xlib. For example, XrmPutStringResource() allows you to add a resource spec. Either instance name or class may be used, and they may be bound with loose (*) or tight (.) bindings. There are also more general routines like XrmGetResource() and XrmPutResource() as well as quark versions, i.e. XrmQGetResource(), XrmQPutResource(), etc. You can even do stuff like get a search list from the resource database and search only that list; see XrmQGetSearchResource() and XrmQSetSearchList(). (Gee, I didn't even know you could do that until I flipped a few more pages in the reference manual just now.) - Jolly Jolly Chen Clinical Information Systems Hewlett-Packard Waltham, MA jollyc@hpwarf.hp.com