home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!gatech!concert!accura_nc!news
- From: eric@aisg.com, (Hua-Wen Wang {Accura})
- Newsgroups: comp.windows.open-look
- Subject: HELP! Associate colormap to all the widgets
- Message-ID: <1993Jan12.143656.24861@aisg.com>
- Date: 12 Jan 93 14:36:56 GMT
- Sender: news@aisg.com
- Reply-To: eric@aisg.com
- Organization: Gateway Conversion Tech.
- Lines: 22
-
- I'm porting XView libraries and applications to Motif.
- 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.
-
- In XView, the API will be called right before
- xv_main_loop(main_frame);
- and take the main_frame as the argument.
- Inside the API, I use FRAME_NTH_SUBFRAME to get all the FRAMEs or FRAME_CMDs from
- the main_frame,
- for each FRAME or FRAME_CMD, I use XQueryTree() to get its children window list,
- and use XSetWindowColormap() and XSetWMColormapWindows() to associate the
- private colormap to all the children windows
-
- Now my problem is in Motif, it seems that there's no such an attribute (similar
- to FRAME_NTH_SUBFRAME) so that I can get all the dialog shell widgets base on
- the application shell widget.
- Is there any way to associate a private colormap to all the widgets given an
- application shell?
- Thanks!!
-
- P.S. Please e-mail your response to me directly, since I got a tight schedule
- may not have too much time to browse through the News.
- My e-mail add: eric@aisg.com
-