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

  1. Newsgroups: comp.lang.tcl
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!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:  new user questions
  5. Sender: news@rchland.ibm.com
  6. Message-ID: <1992Nov11.203814.15764@rchland.ibm.com>
  7. Date: Wed, 11 Nov 1992 20:38:14 GMT
  8. Reply-To: jay@vnet.ibm.com
  9. Disclaimer: This posting represents the poster's views, not necessarily those of IBM
  10. References:  <1992Nov11.180209.1032@twg.com>
  11. Nntp-Posting-Host: ghostwind.rchland.ibm.com
  12. Organization: IBM Rochester, MN
  13. Lines: 32
  14.  
  15. In article <1992Nov11.180209.1032@twg.com>, "David Herron" <david@twg.com> writes:
  16. |> > Q. 2
  17. |> > How do I turn off the icon button for child windows ( or I guess more
  18. |> > apropriately, how I create a window without the toplevel command )
  19. |> 
  20. |> In Xt based toolkits (or in Motif anyway) different `shell' widgets
  21. |> are used for different purposes.  Motif has a DialogShell widget
  22. |> which doesn't put out an icon and negotiates a different set of
  23. |> window border doo-dads.  (No iconize, etc)
  24.  
  25. Basically, you need to set the ``shell'' widget so that it mimics the
  26. behavior of Motif's dialog shell.  Under the configuration I have under
  27. Mwm, dialog shells don't have an iconify or maximize button, and when
  28. you iconify the toplevel, the dialogs go with it.
  29.  
  30. To emulate this under tk, you can do
  31.     
  32.     toplevel .dshell
  33.     wm group .dshell .
  34.     wm transient .dshell .
  35.  
  36. |> It appears that Tk 3.0 won't have this fixed either since the dialogs
  37. |> in `Perspecta Presents!' have a complete set of window border doo-dads.
  38. |> On the other hand they've incorporated some of that since using the window
  39. |> manager to close windows doesn't kill the process.
  40.  
  41. The wmprotocols code would probably be necessary for this (ie., to trap the
  42. wm close/kill selection), unless of course they wrote their own.
  43.  
  44. -- 
  45. : jay          jay@vnet.ibm.com    My opinions and ideas, not my employer's.
  46. : shmdgljd@rchland.vnet.ibm.com    (c) Copyright 1992.  All rights reserved.
  47.