home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / tcl / 1222 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  1.9 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!mips!swrinde!zaphod.mps.ohio-state.edu!malgudi.oar.net!news.ans.net!newsgate.watson.ibm.com!yktnews!admin!ghostwind!shmdgljd
  2. From: shmdgljd@rchland.vnet.ibm.com (Jay Schmidgall)
  3. Newsgroups: comp.lang.tcl
  4. Subject: Re: How to raise window to become top-layer?
  5. Message-ID: <1992Aug19.131724.14415@rchland.ibm.com>
  6. Date: 19 Aug 92 13:17:24 GMT
  7. References: <1992Aug19.010804.16684@twg.com>
  8. Sender: news@rchland.ibm.com
  9. Reply-To: jay@vnet.ibm.com
  10. Organization: IBM Rochester, MN
  11. Lines: 22
  12. Disclaimer: This posting represents the poster's views, not necessarily those of IBM
  13. Nntp-Posting-Host: ghostwind.rchland.ibm.com
  14.  
  15. In article <1992Aug19.010804.16684@twg.com>, "David Herron" <david@twg.com> writes:
  16. |> of `wm raise') is one problem.  The other is that my first attempt at
  17. |> locating the dialog above the center of its parent did not work.  (I called
  18. |> `wm rootx', `wm rooty' and whatever gets width/height, and calculated what
  19. |> should have been the x/y coords, then did `toplevel ... -geometry ${x}x${y}'
  20. |> but this did not help.)
  21.  
  22. Speaking of which, I've got a tcl proc which calculates the new geometry for
  23. the dialog popup ok, but with one caveat: I always have to explicitly set
  24. the width and height of the box before calling my proc.  Whenever I try to
  25. retrieve the geometry of the dialog box, wm geometry returns 0x0+0+0.
  26.  
  27. If I was using Xt, I would probably first realize the box to let its height
  28. and width be set, then calculate the position and then map the shell.  There
  29. doesn't seem to be a way to do the equivalent in tk.  It looks like pack is
  30. supposed to map the windows it manages, but calling wm geometry after packing
  31. still returns zeros.  Is there a way to get the height and width before it
  32. becomes visible?
  33.  
  34. -- 
  35. : jay          jay@vnet.ibm.com    My opinions and ideas, not my employer's.
  36. : shmdgljd@rchland.vnet.ibm.com    (c) Copyright 1992.  All rights reserved.
  37.