home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / tcl / 1799 < prev    next >
Encoding:
Text File  |  1992-11-11  |  2.2 KB  |  56 lines

  1. Newsgroups: comp.lang.tcl
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!darwin.sura.net!gatech!news.ans.net!newsgate.watson.ibm.com!yktnews!admin!ghostwind!shmdgljd
  3. From: shmdgljd@rchland.vnet.ibm.com (Jay Schmidgall)
  4. Subject: Re: Setting icon for tk app (or, how do I configure `.' ?)
  5. Sender: news@rchland.ibm.com
  6. Message-ID: <1992Nov11.200007.10063@rchland.ibm.com>
  7. Date: Wed, 11 Nov 1992 20:00:07 GMT
  8. Reply-To: jay@vnet.ibm.com
  9. Disclaimer: This posting represents the poster's views, not necessarily those of IBM
  10. References: <1992Nov09.171857.7608@rchland.ibm.com> <1992Nov10.163611.15168@cas.org>,<1992Nov10.184512.13508@rchland.ibm.com> <1992Nov11.151806.15519@cpu.com>
  11. Nntp-Posting-Host: ghostwind.rchland.ibm.com
  12. Organization: IBM Rochester, MN
  13. Lines: 41
  14.  
  15. In article <1992Nov11.151806.15519@cpu.com>, gwlester@cpu.com (Gerald W. Lester) writes:
  16. |> In article <1992Nov10.184512.13508@rchland.ibm.com>, shmdgljd@rchland.vnet.ibm.com (Jay Schmidgall) writes:
  17. |> >I'm asking how to get the icon to be the same in every instance.  However,
  18. |> >it must be a _user specified_ icon.  I can easily do
  19. |> >
  20. |> >    wm iconname . @some_image
  21. |> >
  22. |> >to set it the same for each instance; however, I want the user to be able
  23. |> >to set it rather than the app itself.
  24. |> 
  25. |>     Then do a:
  26. |>         wm inconname .@$var_name
  27. |> 
  28. |>     where var_name contains the name of the bitmap as specified by the
  29. |> user, either through a command line argument or via a entry widget of some
  30.  
  31. Yes, but as I mentioned in the original post, I would like to have the user
  32. be able to set it via a resource.  They can do this for the first instance
  33. of the tool, but additional instances have a number tacked on.
  34.  
  35. E.g.,
  36.  
  37. Mwm*myapp*iconImage: some_image
  38.  
  39. works fine for the first instance.  However, for other instances, they
  40. would need to specify
  41.  
  42. Mwm*myapp #2*iconImage: some_image
  43. Mwm*myapp #3*iconImage: some_image
  44.  
  45. and so on.
  46.  
  47. I could arguably retrieve the wm resource, but then I become dependent on
  48. knowing _which_ wm is running, generally a bad thing.
  49.  
  50. I would prefer a solution which lets the first resource above affect all
  51. instances of the application.
  52.  
  53. -- 
  54. : jay          jay@vnet.ibm.com    My opinions and ideas, not my employer's.
  55. : shmdgljd@rchland.vnet.ibm.com    (c) Copyright 1992.  All rights reserved.
  56.