I'm really hoping that Gordon's comment lights a fire! If you haven't dipped
into framework source yet. now is a great time. If you have desires and/or
aspirations to create components or extend existing ones - this is where you
are going to get the most bang for your buck.

 

Rick Winscot

 

 

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Friday, April 11, 2008 8:04 PM
To: [email protected]
Subject: RE: [flexcoders] html in a button's label field? Using internal
textfield...

 

You need to override Button's updateDisplayList() method. Take a look at the
source code for this method. In the two places where it gets and sets
textField.text, try changing it to textField.htmlText.

 

Gordon Smith

Adobe Flex SDK Team

 

  _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Austin Kottke
Sent: Friday, April 11, 2008 4:01 PM
To: [email protected]
Subject: [flexcoders] html in a button's label field? Using internal
textfield...

 

Hi,

I'm trying to put html text into a button. I've subclassed a button 
component, and tried to
modify the internal textfield as in the docs it says that the textfield 
is the internal textfield that
the label works with.

I try:

this.textField.text = this.category.getId();
this.textField.htmlText = this.category.getId();

And nothing happens.

I do

this.label = this.category.getId()

and everything shows up fine.

Anyone have a clue? Is the internalTextfield for a button not really 
affect the label of a button?

- Austin

 

<<image001.jpg>>

<<image002.jpg>>

Reply via email to