Path: utzoo!attcan!uunet!lll-winken!csd4.csd.uwm.edu!mailrus!cwjcc!gatech!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: Visuals,colors,resource db Message-ID: <8908241741.AA28103@expo.lcs.mit.edu> Date: 24 Aug 89 17:41:53 GMT References: Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 27 > Xt question: Between a call to root=XtInitialize (or equivalent) and the > XtRealizeWidget(root), how can one select the appropriate Visual? Can one > let the Intrinsics use the default and then change it? A visual field will be added to the Shell widget in Release 4. Until then there is little you can do, short of writing your own widget that has a visual field. > Resource database question: I have an application-dependent resource > db which I would like to merge with the one returned by XtDatabase. How about using an app-defaults file instead? This way the toolkit will merge your resources in for you. > XGetWindowAttributes and XAllocNamedColor return BadRequest. These Xlib > routines where used between the calls to XtRealizeWidget and XtMainLoop. You need to flush the event queue. Take a look at XFlush(). Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213