home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!darwin.sura.net!gatech!news.ans.net!newsgate.watson.ibm.com!yktnews!admin!ghostwind!shmdgljd
- From: shmdgljd@rchland.vnet.ibm.com (Jay Schmidgall)
- Subject: Re: Setting icon for tk app (or, how do I configure `.' ?)
- Sender: news@rchland.ibm.com
- Message-ID: <1992Nov11.200007.10063@rchland.ibm.com>
- Date: Wed, 11 Nov 1992 20:00:07 GMT
- Reply-To: jay@vnet.ibm.com
- Disclaimer: This posting represents the poster's views, not necessarily those of IBM
- References: <1992Nov09.171857.7608@rchland.ibm.com> <1992Nov10.163611.15168@cas.org>,<1992Nov10.184512.13508@rchland.ibm.com> <1992Nov11.151806.15519@cpu.com>
- Nntp-Posting-Host: ghostwind.rchland.ibm.com
- Organization: IBM Rochester, MN
- Lines: 41
-
- In article <1992Nov11.151806.15519@cpu.com>, gwlester@cpu.com (Gerald W. Lester) writes:
- |> In article <1992Nov10.184512.13508@rchland.ibm.com>, shmdgljd@rchland.vnet.ibm.com (Jay Schmidgall) writes:
- |> >I'm asking how to get the icon to be the same in every instance. However,
- |> >it must be a _user specified_ icon. I can easily do
- |> >
- |> > wm iconname . @some_image
- |> >
- |> >to set it the same for each instance; however, I want the user to be able
- |> >to set it rather than the app itself.
- |>
- |> Then do a:
- |> wm inconname .@$var_name
- |>
- |> where var_name contains the name of the bitmap as specified by the
- |> user, either through a command line argument or via a entry widget of some
-
- Yes, but as I mentioned in the original post, I would like to have the user
- be able to set it via a resource. They can do this for the first instance
- of the tool, but additional instances have a number tacked on.
-
- E.g.,
-
- Mwm*myapp*iconImage: some_image
-
- works fine for the first instance. However, for other instances, they
- would need to specify
-
- Mwm*myapp #2*iconImage: some_image
- Mwm*myapp #3*iconImage: some_image
-
- and so on.
-
- I could arguably retrieve the wm resource, but then I become dependent on
- knowing _which_ wm is running, generally a bad thing.
-
- I would prefer a solution which lets the first resource above affect all
- instances of the application.
-
- --
- : jay jay@vnet.ibm.com My opinions and ideas, not my employer's.
- : shmdgljd@rchland.vnet.ibm.com (c) Copyright 1992. All rights reserved.
-