> 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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sherif Abdou
Sent: Wednesday, January 16, 2008 6:16 PM
To: flexcoders@yahoogroups.com
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: flexcoders@yahoogroups.com
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/wwhe
lp.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/newsear
ch/category.php?category=shopping>  

 

Reply via email to