home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / smalltal / 2313 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  2.3 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!pacbell!oracle!pyramid!infmx!cshaver
  2. From: cshaver@informix.com (Craig Shaver)
  3. Newsgroups: comp.lang.smalltalk
  4. Subject: Re: Questions about creating windows
  5. Message-ID: <1992Nov17.173424.11597@informix.com>
  6. Date: 17 Nov 92 17:34:24 GMT
  7. References: <1992Nov16.151423.7665@netcom.com>
  8. Sender: news@informix.com (Usenet News)
  9. Organization: Informix Software, Inc.
  10. Lines: 43
  11.  
  12. In article <1992Nov16.151423.7665@netcom.com> altinbay@netcom.com (John Altinbay) writes:
  13. >
  14. >I am trying to create windows whose contents vary depending on the
  15. >contents of an OrderedCollection.  It may contain a number of
  16. >different buttons, EntryFields, StaticTexts.  Further, I want 
  17. >these windows to be able to change to a different set of subpanes -
  18. >this operation would be the result of using one of the buttons.
  19. >
  20. .....
  21.  
  22. >I had trouble getting a number of EntryFields and StaticTexts to
  23. >line up.  In this case, I had an OrderedCollection of 6 entries
  24. >(remember this could vary).  I used do: and, in the block, asked
  25. >for add subpanes to the top pane of my window.  This creates
  26. >the right number of panes, but if I use framingBlock, since these
  27. >blocks get evaluated later to determine where the panes are going
  28. >to be, I get all the panes one on top of the other even though
  29. >I'm using variables to specify the positions.  So for the time
  30. >being, I used framingRatio.  Unfortunately, this makes the panes
  31. >expand when I resize the window.
  32. >
  33. >Any pointers?
  34. .............
  35. The block used in the framingBlock will reference the variables in
  36. the context of which they were declared.  Use a dummy type method
  37. and have the message parms be your variables.  Set the framing block
  38. there and it will work properly later.  (I think this is correct; 
  39. using faulty core memory and not notes.:)  I worked on something 
  40. similar to do dialogs on the fly based on an input file that contained
  41. an outline of the dialog input scheme.
  42. >
  43. >
  44. >
  45. >-- 
  46. >John Altinbay   -   altinbay@netcom.com
  47. >===============================================================
  48. >There's a spirit that guides me, a light that shines for me
  49. >My life is worth the living, I don't need to see the end.
  50.  
  51. Craig ....
  52. -- 
  53. Craig Shaver  (cshaver@informix.com for now) (415)390-0654 (415)926-6407
  54. Productivity Group POB 60458 Sunnyvale, CA  94088
  55.