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