home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!agate!sprite.Berkeley.EDU!ouster
- From: ouster@sprite.Berkeley.EDU (John Ousterhout)
- Newsgroups: comp.lang.tcl
- Subject: Re: Shrinking frames in TK
- Date: 18 Dec 1992 00:47:51 GMT
- Organization: U.C. Berkeley Sprite Project
- Lines: 44
- Distribution: world
- Message-ID: <1gr73nINNjop@agate.berkeley.edu>
- References: <1992Dec10.100146.20371@march.co.uk>
- NNTP-Posting-Host: tyranny.berkeley.edu
-
- In article <1992Dec10.100146.20371@march.co.uk>, rossw@march.co.uk (Ross Wakelin) writes:
- |> Greetings
- |>
- |> I have a small, but annoying problem with tk/tcl 2.3
- |>
- |> I am creating a frame:
- |>
- |> frame .noddy -relief sunken -geometry 200x10
- |>
- |> and a subframe within it:
- |>
- |> frame .noddy.subframe -relief raised -background blue -geometry 10x10
- |>
- |> The intention is that I am creating a stripchart type environment, and that
- |> I will vary the geometry of the subframe to change the size of the stripchart.
- |>
- |> They are packed together using:
- |> pack apend .noddy .noddy.subframe {bottom}
- |>
- |> Unfortunately, the superior frame (.noddy) keeps resizing itself to the size
- |> of the subframe (.noddy.subframe), completely destroying the layout of the
- |> display.
- |>
- |> I have tried using explicity x and y instead of geometry, and no change.
- |> HELP!!!!
- |>
- |> Thanks all
- |>
- |> --
- |> Ross Wakelin r.wakelin@march.co.uk
- |> Open Systems Director or ..mcsun!uknet!uknet!march!rossw
- |> March Systems Consultancy Ltd
- |>
-
- The packer overrides the requested size (200x10) of the parent frame.
- To get around this problem, use the placer to manage one or both of
- the parent frame and the child frame (I presume you're using the packer
- for both parent and child right now). For example, replace the pack
- command above with
-
- place .noddy.subframe -relx 0.5 -rely 1.0 -anchor s
-
- The packer should probably have an option not to modify the requested
- geometry of the parent. I'll put this on my ToDo list.
-