home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / openloo / 5027 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  1.4 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!gatech!concert!accura_nc!news
  2. From: eric@aisg.com, (Hua-Wen Wang {Accura})
  3. Newsgroups: comp.windows.open-look
  4. Subject: HELP! Associate colormap to all the widgets
  5. Message-ID: <1993Jan12.143656.24861@aisg.com>
  6. Date: 12 Jan 93 14:36:56 GMT
  7. Sender: news@aisg.com
  8. Reply-To: eric@aisg.com
  9. Organization: Gateway Conversion Tech.
  10. Lines: 22
  11.  
  12. I'm porting XView libraries and applications to Motif.
  13. I had a librarey which will create my private colormap and provide API to the      application to associate the new colormap to all the window objects.
  14.  
  15. In XView, the API will be called right before 
  16.   xv_main_loop(main_frame);
  17. and take the main_frame as the argument.
  18. Inside the API, I use FRAME_NTH_SUBFRAME to get all the FRAMEs or FRAME_CMDs from 
  19.   the main_frame,
  20.  for each FRAME or FRAME_CMD, I use XQueryTree() to get its children window list,
  21.  and use XSetWindowColormap() and XSetWMColormapWindows() to associate the 
  22.  private colormap to all the children windows
  23.  
  24. Now my problem is in Motif, it seems that there's no such an attribute (similar 
  25.  to FRAME_NTH_SUBFRAME) so that I can get all the dialog shell widgets base on
  26.  the application shell widget.
  27. Is there any way to associate a private colormap to all the widgets given an
  28.  application shell?
  29. Thanks!!
  30.  
  31. P.S. Please e-mail your response to me directly, since I got a tight schedule
  32.       may not have too much time to browse through the News.
  33. My e-mail add: eric@aisg.com
  34.