Path: utzoo!attcan!uunet!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: Default init values of widgets Message-ID: <9002012102.AA25811@expo.lcs.mit.edu> Date: 1 Feb 90 21:02:48 GMT References: <9002010315.AA27013@ATHENA.MIT.EDU> Sender: root@athena.mit.edu (Wizard A. Root) Organization: The Internet Lines: 47 > Is there a way to setup the default font, cursor, foreground > background,... that widgets will look for when they get created? Yes, using one line in you app-defaults file for each resource. e.g Application*Foreground: green This will reset the default forground color to green. > For example I would like all my widgets to have the same color > background, or font,... which is not the one that is the > current default ; Right now I have to specify quite a lot > of things again and again... If you are using XtSetValues(), or an argument list at creation time then you are not setting new defaults, you are forcing the user to use the colors you have specified. > 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. Too bad. The Xt Intrinsics provide no way to do this, and if I have a my way they never will, this type of thing is handled just fine through the resource manager. > Also I having problem setting up the icon of my toplevel widget > (i.e I don't get an icon or icon name) after doing: > n=0; XtSetArg(arg[n], XtNiconName, "HELLO"); n += 1; > XtSetArg(arg[n], XtNiconPixmap,icon); n += 1; > XtSetArg(arg[n], XtNoverrideRedirect, True); n += 1; > XtSetValues(toplevel,arg,n); Override redirect windows are ignored by the window manager, therefore will not have an icon, are you sure you want an Override redirect window? I suspect that you don't. Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213