Path: utzoo!attcan!uunet!clyde.concordia.ca!mcgill-vision!bloom-beacon!ATHENA.MIT.EDU!swick From: swick@ATHENA.MIT.EDU (Ralph R. Swick) Newsgroups: comp.windows.x Subject: Re: Default init values of widgets Message-ID: <9002012212.AA02043@lyre.MIT.EDU> Date: 1 Feb 90 22:12:35 GMT References: <9002010315.AA27013@ATHENA.MIT.EDU> Sender: root@athena.mit.edu (Wizard A. Root) Organization: DEC/MIT Project Athena Lines: 20 > 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. The words "default ... that widgets will look for" and "not by using the resource manager" don't go together at all. One way or another, the resource database has to be involved. If you really want to make calls, you can use the Xrm routines in Xlib to modify the resource database before loading "non-defaults" and creating widgets. In R4, the routine XtAppSetFallbackResources might help you with whatever it is you're trying to do. > Also I having problem setting up the icon of my toplevel widget > XtSetArg(arg[n], XtNoverrideRedirect, True); n += 1; What window manager are you using? Most will ignore properties on override_redirect windows.