Path: utzoo!attcan!uunet!mcsun!mcvax!sunic!tut!santra!ado From: ado@hutcs.hut.fi (Andre Dolenc) Newsgroups: comp.windows.x Subject: Visuals,colors,resource db Message-ID: Date: 23 Aug 89 10:08:29 GMT Sender: news@santra.UUCP Organization: Helsinki University of Technology Lines: 24 References: [ It is the first I post a message so I apologies in advance for any mistakes. ] ------ 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? ------ Resource database question: I have an application-dependent resource db which I would like to merge with the one returned by XtDatabase. Fine, so I load it with XrmGetDatabase and merge them with XrmMergeDatabases. However, since I want Xt to use this merged result when XtRealizeWidget is called I must change the default db associated to the display and the only way I have figured to do this is make a direct assignment: display->db = merged_db I don't like it; looks like a hack... Have I missed something? ------ Problem (Environments: (1) Sun 3, SunOs 4.0, X11.3; (2) Tektronics 4319, X11.3) XGetWindowAttributes and XAllocNamedColor return BadRequest. These Xlib routines where used between the calls to XtRealizeWidget and XtMainLoop.