Interesting.  I like mine better because callLater will be too late if
someone forces a call to validateNow(), which happens if the checkbox is
a list renderer.

 

Mine uses an undocumented call, but stays in the "recipe" better.

 

-Alex

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Monday, April 09, 2007 12:06 PM
To: [email protected]
Subject: [flexcoders] Re: Word wrapping RadioButton Labels

 

Here is a CheckBox version. Alex, I'd be interested in your opinion on
this approach.

http://tech.groups.yahoo.com/group/flexcoders/message/49518
<http://tech.groups.yahoo.com/group/flexcoders/message/49518> 

Ben

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> 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.
<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: [email protected] <mailto:flexcoders%40yahoogroups.com>
[mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of merrittwchapman
> Sent: Friday, April 06, 2007 12:33 PM
> To: [email protected] <mailto:flexcoders%40yahoogroups.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