We help IT Professionals succeed at work.

Richedit component

serdarulutas
serdarulutas asked
on
i want to use trichedit like tmemo. i tried to change plaintext property to true (or false) but it didn't work either. it still shows bold and italic words. does anybody know how i can use trichedit like tmemo.

note: i changed defattributes property. it didnt work!


Comment
Watch Question

Commented:
changing the PlainText property only affects how the data is treamed in or out of the control. To affect the way it appears while in the control, you'll need to do something like this:

  Richedit1.lines.loadfromfile('z:\test.rtf');//load the file
  Richedit1.PlainText:=True;
  RichEdit1.lines.SaveTofile('Z:\test.rtf');//save it out as PlainText
  Richedit1.lines.loadfromfile('z:\test.rtf');//reload the file



Good luck!!
serdarulutas:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
CERTIFIED EXPERT

Commented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

accept DrDelphi's comment as answer

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Thanks,

geobul
EE Cleanup Volunteer

Explore More ContentExplore courses, solutions, and other research materials related to this topic.