Gee, I was sure someone had done this already.

 

I don't think I'd use List unless you have more than 50 radiobuttons.
Repeater in a VBox might be better.

 

Anyway, I just posted a multiline radiobutton on my blog
http://blogs.adobe.com/aharui/2007/04/multiline_buttons.html.  It will
be lighterweight than HBox/RadioButton/TextArea.  I'll bet your TextArea
couldn't be clicked to change the selected state of the radio button.

 

-Alex

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of merrittwchapman
Sent: Friday, April 06, 2007 12:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Word wrapping RadioButton Labels

 


I'm creating a survey application where I use RadioButtons as answer
choices. Because my answer types are dynamic, meaning that they can
be one word, like 'True' or an entire paragraph of text, I need a way
to display the answer text in the RadioButton label so it can wrap
text as necessary.

I've tried creating an itemRenderer that contains a RadioButton and a
TextArea in an HBox, and placed it in a List control. This works until
I start scrolling through the list... the RadioButtonGroup loses the
selected index.

What I would like to do is just extend the RadioButton class and
change it's Label property so that it can wrap text. Is that possible?

Any help is much appreciated!

TIA, 
MC

 

Reply via email to