[comp.windows.x.motif] Setting iconPixmap from a resource file

mek@jpl-devvax.jpl.nasa.gov (Mike Ketchmere) (06/13/91)

I am trying to set the values of the resources of the icon
associated with my application from a resource file.  I can set the
iconName resource with no problem, but setting the iconPixmap resource
yields no results.  Looking at the resource file for the X application 'xcalc',
I see that the value of the iconPixmap gets set as follows:

	XCalc*iconPixmap:		calculator

However, the same trick will not for my application.  I know I can set the
pixmap from within the actual code, and also by using the iconImage
resource in my window manager resource file, but I'd like to know if
there is a way to set the value from a resource file as in the xcalc 
application.  Any help would be appreciated.

Mike Ketchmere
mek@devvax.jpl.nasa.gov

klee@wsl.dec.com (Ken Lee) (06/13/91)

In article <1991Jun12.205222.5881@jpl-devvax.jpl.nasa.gov>, mek@jpl-devvax.jpl.nasa.gov (Mike Ketchmere) writes:
|> I am trying to set the values of the resources of the icon
|> associated with my application from a resource file.  I can set the
|> iconName resource with no problem, but setting the iconPixmap resource
|> yields no results.  Looking at the resource file for the X application 'xcalc',
|> I see that the value of the iconPixmap gets set as follows:
|> 
|> 	XCalc*iconPixmap:		calculator
|> 
|> However, the same trick will not for my application. 

This is because the Athena vendor shell widget installs a
string-to-bitmap resource converter, while yours does not.  You may
want to add such a converter to your vendor shell.  Many vendors do
this.

-- 
Ken Lee
DEC Western Software Laboratory, Palo Alto, Calif.
Internet: klee@wsl.dec.com
uucp: uunet!decwrl!klee