[comp.windows.x] Iconify in twm

chris@sage0.gsfc.nasa.gov (Chris P. Ross) (07/03/90)

  I have a question, I am using X11R4 with twm, and I took someone else's
.twmrc file, and modified it to fit for my uses.  The problem with this is,
When I try to iconify windows, there is no icon.  I presume this is something
done by my .twmrc file, but I've looked through it and I don't know what is
doing it.  Any help would be appriciated.

                                            - Chris

--
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
  Chris P. Ross    (301)/286-7242   | InterNet: chris@sage0.gsfc.nasa.gov
  EGRET Programmer, NASA / GSFC     |           chris@olgao.umd.edu
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-

mike@raven.uss.tek.com (Mike Ewan) (07/07/90)

In article <chris.647010543@sage0> chris@sage0.gsfc.nasa.gov (Chris P. Ross) writes:
>  I have a question, I am using X11R4 with twm, and I took someone else's
>.twmrc file, and modified it to fit for my uses.  The problem with this is,
>When I try to iconify windows, there is no icon.  I presume this is something
>done by my .twmrc file, but I've looked through it and I don't know what is
>doing it.  Any help would be appriciated.

Look for an entry called 'IconifyByUnmapping' and delete it, or change it
to look like:

IconifyByUnmapping {
	"xterm"
}
IconManagers
{
	"xterm"	"=300x100+1+1"2
}

--
 Michael Ewan    (503)627-6468      Internet:  mike@raven.USS.TEK.COM
 Unix Systems Support                   UUCP:  ...!tektronix!puffin!raven!mike
 Tektronix, Inc.                  Compuserve:  73747,2304
"Fig Newton: The force required to accelerate a fig 39.37 inches/sec."--J. Hart

ejazuman@praxis.cs.ruu.nl (Edgar Zuman) (07/09/90)

In <chris.647010543@sage0> chris@sage0.gsfc.nasa.gov (Chris P. Ross) writes:


>  I have a question, I am using X11R4 with twm, and I took someone else's
>.twmrc file, and modified it to fit for my uses.  The problem with this is,
>When I try to iconify windows, there is no icon.  I presume this is something
>done by my .twmrc file, but I've looked through it and I don't know what is
>doing it.  Any help would be appriciated.

Maybe there is an icon, but the icon is outside the screen. Use .Xdefaults to
set the place where you want the icon. I have had the same problem, but if you
look at the borders of your screen, you may see something.
--
| Edgar Zuman    | User of the Computer Science Department, RUU Utrecht |
| Singel 71      +------------------------------------------------------+
| 1402 NR Bussum | E-MAIL ADDRESS : ejazuman@praxis.cs.ruu.nl           |
| Holland        | :^)  :-)  8-)  |-)  :>)                              |

chris@sage0.gsfc.nasa.gov (Chris P. Ross) (07/09/90)

In <6240@tekgen.BV.TEK.COM> mike@raven.uss.tek.com (Mike Ewan) writes:

>In article <chris.647010543@sage0> chris@sage0.gsfc.nasa.gov (Chris P. Ross) writes:
>>  I have a question, I am using X11R4 with twm, and I took someone else's
>>.twmrc file, and modified it to fit for my uses.  The problem with this is,
>>When I try to iconify windows, there is no icon.  I presume this is something
>>done by my .twmrc file, but I've looked through it and I don't know what is
>>doing it.  Any help would be appriciated.

>Look for an entry called 'IconifyByUnmapping' and delete it, or change it
>to look like:

>IconifyByUnmapping {
>	"xterm"
>}
>IconManagers
>{
>	"xterm"	"=300x100+1+1"2
>}

  Alright, that fixed that problem.  Now, my latest problem.  I would like to
know how to get different windows to use different bitmaps for it's icon.  If
anyone can help with this, I'd be much appriciative.  Thanks.

                                        - Chris

--
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
  Chris P. Ross    (301)/286-7242   | InterNet: chris@sage0.gsfc.nasa.gov
  EGRET Programmer, NASA / GSFC     |           chris@olgao.umd.edu
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-

mike@raven.uss.tek.com (Mike Ewan) (07/10/90)

In article <chris.647533729@sage0> chris@sage0.gsfc.nasa.gov (Chris P. Ross) writes:
>
>  Alright, that fixed that problem.  Now, my latest problem.  I would like to
>know how to get different windows to use different bitmaps for it's icon.  If
>anyone can help with this, I'd be much appriciative.  Thanks.

I haven't tried this to see if it actually works.

Put the following in your .twmrc file:  (from the twm man page)

Icons
{
	"XTerm" "xterm.icon"
	"xfd"   "xfd_icon"
}

I believe by using the xterm -n option and using that name in the
"Icons" config you can have different xterm windows use different
icon bitmaps.

Twm will look in /usr/include/X11/bitmaps for the above bitmaps.

Mike

--
 Michael Ewan    (503)627-6468      Internet:  mike@raven.USS.TEK.COM
 Unix Systems Support                   UUCP:  ...!tektronix!puffin!raven!mike
 Tektronix, Inc.                  Compuserve:  73747,2304
"Fig Newton: The force required to accelerate a fig 39.37 inches/sec."--J. Hart