home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / tcl / 2139 < prev    next >
Encoding:
Internet Message Format  |  1992-12-18  |  2.0 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!agate!sprite.Berkeley.EDU!ouster
  2. From: ouster@sprite.Berkeley.EDU (John Ousterhout)
  3. Newsgroups: comp.lang.tcl
  4. Subject: Re: Shrinking frames in TK
  5. Date: 18 Dec 1992 00:47:51 GMT
  6. Organization: U.C. Berkeley Sprite Project
  7. Lines: 44
  8. Distribution: world
  9. Message-ID: <1gr73nINNjop@agate.berkeley.edu>
  10. References: <1992Dec10.100146.20371@march.co.uk>
  11. NNTP-Posting-Host: tyranny.berkeley.edu
  12.  
  13. In article <1992Dec10.100146.20371@march.co.uk>, rossw@march.co.uk (Ross Wakelin) writes:
  14. |> Greetings
  15. |> 
  16. |> I have a small, but annoying problem with tk/tcl 2.3
  17. |> 
  18. |> I am creating a frame:
  19. |> 
  20. |>     frame .noddy -relief sunken -geometry 200x10
  21. |> 
  22. |> and a subframe within it:
  23. |> 
  24. |>     frame .noddy.subframe -relief raised -background blue -geometry 10x10
  25. |> 
  26. |> The intention is that I am creating a stripchart type environment, and that
  27. |> I will vary the geometry of the subframe to change the size of the stripchart.
  28. |> 
  29. |> They are packed together using:
  30. |>     pack apend .noddy .noddy.subframe {bottom}
  31. |> 
  32. |> Unfortunately, the superior frame (.noddy) keeps resizing itself to the size 
  33. |> of the subframe (.noddy.subframe), completely destroying the layout of the
  34. |> display.
  35. |> 
  36. |> I have tried using explicity x and y instead of geometry, and no change.
  37. |> HELP!!!!
  38. |> 
  39. |> Thanks all
  40. |> 
  41. |> -- 
  42. |> Ross Wakelin                                        r.wakelin@march.co.uk
  43. |> Open Systems Director                  or ..mcsun!uknet!uknet!march!rossw 
  44. |> March Systems Consultancy Ltd 
  45. |> 
  46.  
  47. The packer overrides the requested size (200x10) of the parent frame.
  48. To get around this problem, use the placer to manage one or both of
  49. the parent frame and the child frame (I presume you're using the packer
  50. for both parent and child right now).  For example, replace the pack
  51. command above with
  52.  
  53. place .noddy.subframe -relx 0.5 -rely 1.0 -anchor s
  54.  
  55. The packer should probably have an option not to modify the requested
  56. geometry of the parent.  I'll put this on my ToDo list.
  57.