home *** CD-ROM | disk | FTP | other *** search
- 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
- From: shmdgljd@rchland.vnet.ibm.com (Jay Schmidgall)
- Newsgroups: comp.lang.tcl
- Subject: Re: How to raise window to become top-layer?
- Message-ID: <1992Aug19.131724.14415@rchland.ibm.com>
- Date: 19 Aug 92 13:17:24 GMT
- References: <1992Aug19.010804.16684@twg.com>
- Sender: news@rchland.ibm.com
- Reply-To: jay@vnet.ibm.com
- Organization: IBM Rochester, MN
- Lines: 22
- Disclaimer: This posting represents the poster's views, not necessarily those of IBM
- Nntp-Posting-Host: ghostwind.rchland.ibm.com
-
- In article <1992Aug19.010804.16684@twg.com>, "David Herron" <david@twg.com> writes:
- |> of `wm raise') is one problem. The other is that my first attempt at
- |> locating the dialog above the center of its parent did not work. (I called
- |> `wm rootx', `wm rooty' and whatever gets width/height, and calculated what
- |> should have been the x/y coords, then did `toplevel ... -geometry ${x}x${y}'
- |> but this did not help.)
-
- Speaking of which, I've got a tcl proc which calculates the new geometry for
- the dialog popup ok, but with one caveat: I always have to explicitly set
- the width and height of the box before calling my proc. Whenever I try to
- retrieve the geometry of the dialog box, wm geometry returns 0x0+0+0.
-
- If I was using Xt, I would probably first realize the box to let its height
- and width be set, then calculate the position and then map the shell. There
- doesn't seem to be a way to do the equivalent in tk. It looks like pack is
- supposed to map the windows it manages, but calling wm geometry after packing
- still returns zeros. Is there a way to get the height and width before it
- becomes visible?
-
- --
- : jay jay@vnet.ibm.com My opinions and ideas, not my employer's.
- : shmdgljd@rchland.vnet.ibm.com (c) Copyright 1992. All rights reserved.
-