bill@boulder.Colorado.EDU (09/28/89)
I can't figure out how to specify my own icon image for a client no matter what I try. I'm running HP-UX 6.5 on an HP 350 using the HP-supplied version of X and Hpwm -- I can't get the window manager to pay attention to any "iconImage" resource in my .Xdefaults. For example, I hacked the xcalc code to give it the class name XCalc, and put the following two lines in my .Xdefaults: Hpwm*XCalc*clientDecoration: +Resize Hpwm*XCalc*iconImage: /extra1/bitmaps/calc.xbm The first line works, but the second line doesn't -- I just get the ordinary default icon. It isn't a question of a non-existent or unfindable bitmap, because "bitmap /extra1/bitmaps/calc.xbm" works fine; and the bitmap fits the default size constraints. Has anybody else been able to make this work, and if so, can you figure out what I'm doing wrong? If you can, I'll be supremely grateful . . . Bill Skaggs
jack@hpindda.HP.COM (Jack Repenning) (09/30/89)
I use: Hpwm*bitmapDirectory: /usr/include/X11/bitmaps Hpwm*XCalc.iconImage: hpcalc ...but I also use other icons with fully-qualified path names, like you're doing. So, what you've shown should work. Maybe the file /extra1/bitmaps/calc.xbm is in X10 format, rather than X11 format. They're different; bitmap reads both; most X11 programs only read one (I think....). You can convert and X10 bitmap to an X11 bitmap with bitmap: just make any modification (say, turn a bit on then back off), and write it back out. (Bitmap reads both formats, but only writes X11.) But maybe you should copy the file elsewhere, first - maybe someone else is using it in X10 still.... ------------------------------------------------------------- Jack Repenning - Information Networks Division, Hewlett Packard Company uucp: ... {allegra,decvax,ihnp4,ucbvax} !hplabs!hpda!jack or: ... jack@hpda.hp.com HPDesk: Jack REPENNING /HP6600/UX USMail: 43LN; 19420 Homestead Ave; Cupertino, CA 95014 Phone: 408/447-3380 HPTelnet: 1-447-3380 ------------------------------------------------------------- Disclaimer: These opinions are not necessarily those of my employer. In fact, my manager doesn't know I'm . . . Oh shoot! Here he comes! Quick! Pop up that window with code in it! Bye!