TsRichEdit WordWrap

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #37042
    Stephane Senecal
    Participant

    When changing WordWrap property at runtime, it loses formating of the rich text.

    Stephane Senecal
    CIS Group
    Delphi programmer since 2001

    #55283
    Support
    Keymaster

    If WordWrap property is changed then control is recreated and Font property is reassigned if AlphaSkins activated.

    I can suggest to use the sRichEdit1.SkinData.CustomFont property.

    Just change it to True and font will not be changed by AlphaSkins engine.

    You can do something like this, also:

    Quote:
    RichEdit1.SkinData.CustomFont := True;

    RichEdit1.WordWrap := not RichEdit1.WordWrap;

    RichEdit1.SkinData.CustomFont := False;

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.