Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news4.ner.bbnplanet.net!cpk-news-hub1.bbnplanet.com!newsfeed.internetmci.com!howland.erols.net!surfnet.nl!news.unisource.nl!news.tip.nl!news
From: Eric <project3@tip.nl>
Subject: Re: VW2.5: Dynamic allocated input fields
X-Nntp-Posting-Host: amsterdam03.pop.tip.nl
Content-Type: text/plain; charset=us-ascii
Message-ID: <3222AC22.46@tip.nl>
Sender: news@tip.nl (The News User)
Content-Transfer-Encoding: 7bit
Organization: The Internet Plaza
References: <4vi9j5$t2p@sandmann.prz.tu-berlin.de>
Mime-Version: 1.0
Date: Tue, 27 Aug 1996 08:04:50 GMT
X-Mailer: Mozilla 2.0 (Win95; I)
Lines: 29

Ina Heider wrote:
> 
> My goal is to create a variable (user chosen) number of text fields.
> To avoid after addition of a field recompiling of the Smalltalk code
> I try to use them all with the same ValueHolder. I am able to inform
> the AspectAdaptor about the right value for valueUsingTarget:
> and from there to set the appropriate field. But if the user has
> changed a field I'm not able to find out which field and the value
> for it to set the belonging value.
> Has anyone experiences like this? Any ideas how I could resolve this ?
> Ideas how to create any number of input fields in a subcanvas without
> the necessity to recompile the code would be of equal value.
> 
>  Many thanks in advance,
>          Ina
>          (ihe@fokus.gmd.de)Dear Ina,

My suggestion would be to define one class complete with UI for one and only 
one field. Then, according to necessity, you instantiate as much subcanvasses 
as you need. If you put all those instances in a collection, you should be 
able to reference them each individually.

I never tried a dynamic allocation of subcanvases myself, and I think that 
will be the greatest task...

Good Luck,

Serge Beaumont.
beaumose@ip-groep.nl
