A while ago Darron Schall posted this component for extending the
CheckBox to permit multiple lines. It works great. I have used this
method to do the same feature with RadioButtons. However, the
resulting box places a black border around the label text.
How can I remove that black border?
====
This is Darron's component
package
{
import mx.controls.CheckBox;
import flash.text.TextFieldAutoSize;
public class MultiLineCheckBox extends CheckBox
{
public function MultiLineCheckBox()
{
super();
callLater( measure );
}
override protected function createChildren():void
{
super.createChildren();
textField.wordWrap = true;
textField.autoSize = TextFieldAutoSize.LEFT;
textField.border = true;
}
override protected function measure():void
{
super.measure();
// Make sure the text field has measured itself
if ( textField.height > 4 )
{
measuredMinHeight = minHeight = textField.height;
}
}
}
}
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/