bgeer@javelin.sim.es.com (Bob Geer) (05/28/91)
I have RTFM & RTF(man pages) & don't see a way to assign bitmap files to be used as icons to specific programs on my new IPC. I could do this on an 3/80 running an '88 version of twm...did I just step back more than 3 years by using Sun deliverables? -- <> Bob `Bear' Geer <> bgeer%javelin.sim.es.com (this *should* work) <> <> cola-zombie <> speaking only for myself, one of my many tricks <> <> Salt Lake City, <> "We must strive to be more than we are, Lal." <> <> Ootah <> -- Cmdr. Data, learning schmaltz <>
deke@ee.rochester.edu (Dikran Kassabian) (05/29/91)
In article <1991May27.225221.22746@javelin.sim.es.com> bgeer%javelin@dsd.es.com writes: >I have RTFM & RTF(man pages) & don't see a way to assign bitmap files >to be used as icons to specific programs on my new IPC. I could do >this on an 3/80 running an '88 version of twm...did I just step back >more than 3 years by using Sun deliverables? We seem to be talking SUNs and openwin here. If you use 'shelltool', I think you can specify the old -WI option as in sunview. You would want to specify a file in sun icon format. /* Format_version=1, Width=64, Height=64, Depth=1, Valid_bits_per_item=16 */ 0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xE006,0xFFFF,0xFFFF,0x90D7, ..... If you use 'xterm', as I do, you can use xrm to make it happen. Here's an excerpt from my .openwin-init #! /bin/sh # .openwin-init - OpenWindows initialization script. # # ... xterm -xrm "*iconGeometry: 64x64+5+180" -geometry 80x40+118+151 -fn \-adobe-courier-bold-r-normal--18-180-75-75-m-110-iso8859-1 -ls +ut -xrm "*iconPixmap: icon/notes.xbm" -n '' & xterm -xrm "*iconGeometry: 64x64+5+260" -geometry 80x34+227+255 -ls +ut -iconic -xrm "*iconPixmap: icon/deke.xbm" -n '' & The files icon/notes.xbm and icon/deke.xbm are X BitMaps (xbm format). #define deke 64 #define deke 64 static char deke_bits[] = { 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x07,0x60,0xff,0xff,0xff,0xff,0x09, ... This works pretty well for me. Now for my question: Although I specify an icon geometry of 64x64, and the xbm files are of 64x64 bitmaps, under Sun's openwin the icons have a label area at the bottom of the icon of height about 32 and width 64. How do I get rid of it? ^Deke Kassabian, deke@ee.rochester.edu or ur-valhalla!deke Univ of Rochester, Dept of EE, Rochester, NY 14627 (+1 716-275-3106)