home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!pacbell!oracle!pyramid!infmx!cshaver
- From: cshaver@informix.com (Craig Shaver)
- Newsgroups: comp.lang.smalltalk
- Subject: Re: Questions about creating windows
- Message-ID: <1992Nov17.173424.11597@informix.com>
- Date: 17 Nov 92 17:34:24 GMT
- References: <1992Nov16.151423.7665@netcom.com>
- Sender: news@informix.com (Usenet News)
- Organization: Informix Software, Inc.
- Lines: 43
-
- In article <1992Nov16.151423.7665@netcom.com> altinbay@netcom.com (John Altinbay) writes:
- >
- >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 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?
- .............
- The block used in the framingBlock will reference the variables in
- the context of which they were declared. Use a dummy type method
- and have the message parms be your variables. Set the framing block
- there and it will work properly later. (I think this is correct;
- using faulty core memory and not notes.:) I worked on something
- similar to do dialogs on the fly based on an input file that contained
- an outline of the dialog input scheme.
- >
- >
- >
- >--
- >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.
-
- Craig ....
- --
- Craig Shaver (cshaver@informix.com for now) (415)390-0654 (415)926-6407
- Productivity Group POB 60458 Sunnyvale, CA 94088
-