home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / smalltal / 2308 < prev    next >
Encoding:
Text File  |  1992-11-16  |  2.6 KB  |  63 lines

  1. Newsgroups: comp.lang.smalltalk
  2. Path: sparky!uunet!think.com!spool.mu.edu!umn.edu!csus.edu!netcom.com!altinbay
  3. From: altinbay@netcom.com (John Altinbay)
  4. Subject: Questions about creating windows
  5. Message-ID: <1992Nov16.151423.7665@netcom.com>
  6. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  7. Date: Mon, 16 Nov 1992 15:14:23 GMT
  8. Lines: 53
  9.  
  10.  
  11. I am trying to create windows whose contents vary depending on the
  12. contents of an OrderedCollection.  It may contain a number of
  13. different buttons, EntryFields, StaticTexts.  Further, I want 
  14. these windows to be able to change to a different set of subpanes -
  15. this operation would be the result of using one of the buttons.
  16.  
  17. I would like this to be portable, but I am using Digitalk's Smalltalk/V
  18. with Window Builder and Subpanes installed.
  19.  
  20. I had trouble getting a number of EntryFields and StaticTexts to
  21. line up.  In this case, I had an OrderedCollection of 6 entries
  22. (remember this could vary).  I used do: and, in the block, asked
  23. for add subpanes to the top pane of my window.  This creates
  24. the right number of panes, but if I use framingBlock, since these
  25. blocks get evaluated later to determine where the panes are going
  26. to be, I get all the panes one on top of the other even though
  27. I'm using variables to specify the positions.  So for the time
  28. being, I used framingRatio.  Unfortunately, this makes the panes
  29. expand when I resize the window.
  30.  
  31. Any pointers?
  32.  
  33. I would also like to know if there is any good place I can
  34. look for guidance on scroll bars.  The windows I am building
  35. can contain a lot of information, and the whole thing needs
  36. to be scrollable.  Window Builder doesn't document how to tie
  37. the scroll bars into the window very well.  Some of the panes
  38. that come in Subpanes have scrollbars, but they don't come
  39. out reliably.  For example, using CPTableEditor, if I start
  40. with very few rows, I get no vertical scroll bar, and when
  41. I add new rows, they don't appear.
  42.  
  43. Finally, how do I change the subpanes in a window?  In
  44. Digitalk, I was able to get windows that would minimize
  45. and maximize, but not close through a couple of experiments.
  46. The only way I successfully changed the pane content of
  47. a window was by closing the existing one and opening 
  48. another.  This is very obvious on the screen, and I would
  49. like to see the window itself stay up and the insides
  50. update.
  51.  
  52. Tangential to the above, is there any way to get rid of the
  53. garbage windows from my experiments?
  54.  
  55. Thanks for any and all help.
  56.  
  57.  
  58. -- 
  59. John Altinbay   -   altinbay@netcom.com
  60. ===============================================================
  61. There's a spirit that guides me, a light that shines for me
  62. My life is worth the living, I don't need to see the end.
  63.