Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-sdd!hp-pcd!hpcvlx!ben From: ben@hpcvlx.cv.hp.com (Benjamin Ellsworth) Newsgroups: comp.windows.x Subject: Re: Default init values of widgets Message-ID: <100920161@hpcvlx.cv.hp.com> Date: 2 Feb 90 01:30:50 GMT References: <9002010315.AA27013@ATHENA.MIT.EDU> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 29 > Is there a way to setup the default font, cursor, foreground > background,... that widgets will look for when they get created? > > ... > NOTE that I want to do this with a 'C' call or assignment > within application and not by specifying it at prompt level > or by using the ressource manager. Well you can do it with C calls but probably not without using the resource manager. You need to put the resources into the resource database that the widget initialization code looks at. I don't have all of the particulars in front of me (and they just changed with R4), but if you'll dig around in the Xt sources it should be fairly easy (I did it in the R2 days). If R4 Xt has squirreled that database away to the point that it is inaccessible without changing the R4 Xt source, then I think that we have a bug in the R4 Xt Intrinsics. I think that the application ought to be able to attach information directly to the resource database as it sees fit. ----------------------------------------------------------------------- Benjamin Ellsworth | ben@cv.hp.com | INTERNET Hewlett-Packard Company | {backbone}!hplabs!hp-pcd!ben | UUCP 1000 N.E. Circle | (USA) (503) 750-4980 | FAX Corvallis, OR 97330 | (USA) (503) 757-2000 | VOICE ----------------------------------------------------------------------- All relevant disclaimers apply. -----------------------------------------------------------------------