I'm trying to underline the word "not" anytime the text property of
formLabel is set. As in:
<mx:Text id="formLabel" width="430" fontWeight="bold"/>
setProperty = new SetProperty(formLabel, "text",
form.getLabel());
How do I underline 1 word ?
Gordon Smith wrote:
>
> > how to underline 1 word?
> Underline one word of the label of a Button? You can't do that with
> CSS and Button doesn't support an htmlLabel property. (By contrast,
> components like Text have an htmlText property.)
>
> I think you would have to access the TextField inside the Button
> (e.g., the low-level DisplayObject which display the label) and use
> TextField APIs like setTextFormat() on a range of characters.
>
> Gordon Smith
> Adobe Flex SDK Team
>
> ------------------------------------------------------------------------
> *From:* [email protected] [mailto:[EMAIL PROTECTED]
> *On Behalf Of *Sherif Abdou
> *Sent:* Wednesday, January 16, 2008 6:16 PM
> *To:* [email protected]
> *Subject:* Re: [flexcoders] inline styles
>
> if u wana underline one word why dont u just set the textDecoration on
> that word? what exactly do u want to do
>
> ----- Original Message ----
> From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Wednesday, January 16, 2008 8:09:37 PM
> Subject: [flexcoders] inline styles
>
> I can't figure out how to make an inline style. For example, how to
> underline 1 word?
> This help file is wrong because it seem to think that formatting text in
> buttons is an example of an inline styles. The button seems like a block
> element to me. I can't find anything that would allow a style in
> anything that is really inline. What would be the equivalent of html
> span ?
>
> http://livedocs. adobe.com/ flex/201/ html/wwhelp/ wwhimpl/common/
> html/wwhelp. htm?context= LiveDocs_ Book_Parts& file=styles_
> 069_25.html
> <http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=styles_069_25.html>
>
>
>
>
>
> ------------------------------------------------------------------------
> Looking for last minute shopping deals? Find them fast with Yahoo!
> Search.
> <http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping>
>
>
>