Home General

Change Font Style to parts of ppMemo component

edited August 2001 in General
Is there anyway to search the contents of a ppMemo component and change the
color or font style of a specific word?

I have a report that prints states and counties in a memo file .i.e.

State
County County County County
County County County County

State
County County County County
County County County County.......

I would like to be able to have the state be bolded.

Comments

  • edited August 2001
    Use a RichText control. See demo #29 in the main report demo project in
    your RBuilder installation for an example.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited August 2001
    Thanks. Now I have another problem.

    The ppMemo.Lines were populated programatically from TMemo.Lines
    ppMemo.Lines := TMemo.Lines).

    How do I now populate the RichText control. RichText is a String and Lines
    is TStringlist.

  • edited August 2001
    Never Mind I figured It out.


This discussion has been closed.