InputEditField + style

  • WPTools 6.13

    Assume:

    Code
    TWPTextStyle* style(Editor->ParStyles()->AddStyle("test"));style->ASet(WPAT_CharFontSize, 48 * 100);style->ASetAddCharStyle(WPSTY_BOLD);TParagraph* p(Editor->FirstPar);p->SetStyle("test");/* code here */

    The following works fine (inputfield format = size + bold):

    Code
    p->Insert(0, "hi", Cardinal(0));Editor->CPPosition += 2;Editor->InputEditField("name", "value");

    The following does not work (inputfield format = bold):

    Code
    Editor->InputEditField("name", "value");


    So, is there something I'm missing?


    Regards
    patrik.nyborg(a)genicore.se[/code]