Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: Setting resources for appl_shell_widget via .Xdefaults Message-ID: <8904241843.AA04888@expo.lcs.mit.edu> Date: 24 Apr 89 18:43:53 GMT References: <14254@duke.cs.duke.edu> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 26 [ macbeth!aw@cs.duke.edu (Angus Wang) writes: ] > toplevel = XtInitialize("main", "vaedit", NULL, 0, &argc, argv); > display_id = XOpenDisplay(NULL); This won't work correctly. Do this: toplevel = XtInitialize("main", "vaedit", NULL, 0, &argc, argv); display_id = XtDisplay(toplevel); > I have tried several differnt things but the dialog box(topLevelShell) > always comes up as big as the text editor window. I want to make it > pop up smaller. I'v tried (in .Xdefaults) : If you specify an arguement list to a widget or use XtSetValues() these values always override the resource values. Thus you cannot set anything from a resource file. If you remove the arg list and give your default sizes from a app-defaults file you should be able to override them from a personal resource file. This is why you should use an app-defaults file instead of hard coding in values with arg lists. Chris D. Peterson MIT X Consortium