Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!oitnews.harvard.edu!purdue!haven.umd.edu!news.umbc.edu!eff!news.duke.edu!news.mathworks.com!tank.news.pipex.net!pipex!sunsite.doc.ic.ac.uk!susx.ac.uk!news.bton.ac.uk!Simon.Shurville
From: sjs16@itri.bton.ac.uk (Simon John Shurville)
Subject: VW radio buttons
X-Nntp-Posting-Host: tomcat.itri.bton.ac.uk
Message-ID: <DGG44u.26w@bton.ac.uk>
X-Posted-From: InterNews 1.0@diamond.bton.ac.uk.
Lines: 21
Sender: -Not-Authenticated-[3206]
Organization: The Composer Project
References: <45dv11$p50$1@mhadg.production.compuserve.com> 
 <macgremd-131095154347@ck5121gm45b.open.ac.uk>  
 <DGFxGp.L0v@bton.ac.uk>
Date: Sat, 14 Oct 1995 15:53:17 GMT
Xdisclaimer: No attempt was made to authenticate the sender's name.

I'm having lots of trouble with a pair of radio buttons. I wonder if
anyone could help.

I have a pair of buttons and a pair of labels. When a button is
depressed the labels are suppose to change. This works fine. But when I
press the button that was not the default, the default stays depressed
on screen. When I press the default again everything is perfect. Until
I press the non default. Then both buttons are depressed again!

Should I be doing something to the buttons as well as changeing the
labels within the action called by the changed method?

I am accessing the labels via the code on page 143 of the cookbook
(which seems to have a bug on the line labeled step 1).

I am also doing a self builder componentAt: #identifierOfLabel each
time in case there is some memory management issue that I don't
understand.

Thanks in advance.




