Next style attribute (style created in IDE)

  • Hello,

    i have a TWPRichText that is controlled by a style collection.

    The style collection contains a style ("Normal") where next style is set to "Normal". The style is created in designmode in the IDE.

    When i start the program "Normal" is selected as style for the text but when i create a new paragraph it does not have "Normal" as style, is has "<Default>".

    When i edit the "Normal" style at runtime the next style attribute that was set at designtime is cleared. Only after setting it at runtime with the dialog i get the expected result that new paragraphs have the style "Normal"

    Currently i do not save or load the styles to/from CSS, they are only created at designtime inside the Delphi IDE.

    Why is the next style attribute cleared (bug or "by design"??)?

    Ciao,
    Ralf

  • Hi,

    Any hint??

    If this cannot be solved, another question:

    Is it possible to set a specific style (e.g. "Normal" or "Standard") as default style? I mean a style that is auto-attached to all text that does not have a style (new text).

    That would have the same effect...

    Ciao,
    Ralf