Skip navigation
Currently Being Moderated

How do I set styles on the spark Panel titleDisplay ?

Mar 20, 2010 5:05 AM

And where has letterSpacing gone ??

 

Am I the only one who thinks flex 4 and spark is just terrible to work with ?

 

Anyhew, all help on my main question will be appreciated...

 
Replies
  • Currently Being Moderated
    Mar 20, 2010 8:02 AM   in reply to toft

    There are a few options.

    The most simple one: just set the 'styleName' in the MXML Panel declaration and in the <fx:Style> define any of the properties you want.

    As to the letter spacing, it's now 'tackingRight' or 'trackingLeft'.

    HTH,

    FTQuest

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 20, 2010 8:03 AM   in reply to FTQuest

    I've just noticed a typo: 'trackingRight'

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 20, 2010 8:54 AM   in reply to toft

    As I said, there are various options.

     

    For the title you could do this:

     

    s|Panel s|TextBase {

    fontFamily: "the font for the title";

    fontSize: 24;

    color: #0000FF;

    trackingRight: 1;

    }

     

    and then set separate style for text components inside the Panel

     

    .separateStyle {

    fontFamily: "Arial";

    fontSize: 18;

    textDecoration: underline;

    color: #FF0000;

    }

     

    you can sent as many different styles as you need.

    HTH

    FTQuest

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points