A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: TextFormat problems - help please

  1. #1
    Member
    Join Date
    Jun 2000
    Posts
    31
    Ok, I am using this code:

    this["column"]["header"].createTextField('name',2,0,0,allWidths[i],100);
    this["column"]["header"].myTextFormat = new TextFormat();
    this["column"]["header"].myTextFormat.bold = true;
    this["column"]["header"].name.setTextFormat(myTextFormat);
    this["column"]["header"].name.text = 'Patient';
    this["column"]["header"].name.align = 'center';
    this["column"]["header"].name.text = allCols[i];

    This doesn't work. My text is not bold and is not centered. Can anyone help me and let me know why? It's like the TextFormat isn't assigned right. Please help - thanks!

  2. #2
    [Devil in DarkGreen]

    Join Date
    Aug 2000
    Posts
    523
    Code:
    this["column"]["header"].createTextField('name',2,0,0,allWidths,100); 
    this["column"]["header"].name.text = 'Patient'; 
    this["column"]["header"].name.align = 'center'; 
    this["column"]["header"].name.text = allCols; 
    this["column"]["header"].myTextFormat = new TextFormat(); 
    this["column"]["header"].myTextFormat.bold = true; 
    this["column"]["header"].name.setNewTextFormat(myTextFormat);
    DS

  3. #3
    Member
    Join Date
    Jun 2000
    Posts
    31
    I tried that code - still doesn't work

  4. #4
    Member
    Join Date
    Jun 2000
    Posts
    31

    got it

    Ok, I got it to work - thanks!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center