[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | "OSF/Motif" is a trademark |
Notice: | MOTIF kit note in 7.* |
Moderator: | GOOEY::GRASS |
|
Created: | Mon Aug 07 1989 |
Last Modified: | Thu Jun 05 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 5973 |
Total number of notes: | 24620 |
5964.0. "icon depths for mwm" by TLE::JRICHARD () Wed May 21 1997 15:16
I'm having trouble registering an icon with mwm. Everything works
fine with a 8 bit display. With a 24 bit display, I get an error
from X indicating that the pixmap I'm using is the wrong depth.
The code to read and create the icon looks like this:
iconPixmap = XmGetPixmapByDepth(XtScreen(this_client),
file_name,
fg, bg, 8);
XtVaSetValues(this_client,
XmNiconName,icon_title,
XmNiconPixmap, iconPixmap,
NULL);
The icons were generated on an 8 bit plane machine. Do I have to
copy the 8 plane pixmap to a 24 plane pixmap? (If so, how?)
thanks,
John Richardson
[email protected]
T.R | Title | User | Personal Name | Date | Lines
|
---|