Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!nosc!ucsd!ucbvax!husc6!rutgers!ucla-cs!tek From: tek@CS.UCLA.EDU Newsgroups: comp.windows.x Subject: XQueryColors Message-ID: <14395@shemp.CS.UCLA.EDU> Date: 14 Jul 88 17:39:46 GMT Sender: news@CS.UCLA.EDU Reply-To: tek@CS.UCLA.EDU () Organization: UCLA Computer Science Department Lines: 23 [ line eating food ] How do you use the Xlib function XQueryColor(s) in X11 R2? More specifically, why doesn't this function return "Status"? I assume that this function waits for a reply. Otherwise, how can you be sure that your XColor structures have been filled in. So what happens when an error occurs? The Xlib error handler kicks in, of course. But determining that an error occurred via the error handler in client code is not very convenient. So why not just return a "Status" (like most other "query" type functions)? Then it's easy to tell what happened. If I have missed something obvious here, let me sheepishly appolgize in advance. -ted ARPAnet: tek@penzance.cs.ucla.edu UUCP: ...!ucbvax!ucla-cs!tek