shifting text in a richedit

Posted on 2009-12-16
Medium Priority
Last Modified: 2013-11-23
Hello Experts,

In my program I am showing the results of a UDP packet inside of a RichEdit and then parsing out some unnecessary text to get only the information I need, however the result does not look like how I would like for it to look so I am wondering if there is a way to shift the text in the richedit to get the desired result.

I have attached an image which illustrates the problem in more detail as well as the result I am wanting to achieve. If anyone can help then please do not hesitate to respond and thanks in advance for your replies.  


Question by:ezpete
  • 2
LVL 12

Expert Comment

ID: 26063571
It looks like you have WordWrap set to true in the first RichEdit... if this is true, you can then try to set it to false on all RichEdits, and that might solve your problem...

LVL 12

Accepted Solution

Hypo earned 500 total points
ID: 26063623
Giving it a second thought that would not probably solve it...
however, one other thing you can try is to remove all linefeeds in the text... but that might remove some of the information you are interested in?

  AnsiReplaceStr(YourUDPDataAsText, #13#10, '');

Author Comment

ID: 26064747

2 mins after posting I discovered my problem (I was not adding the LF character in the StringReplace call) which fixed my problem, however you already posted and maybe your solution will be helpful to someone else so I will award you the points and thank for taking the time to reply.


Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
Suggested Courses
Course of the Month8 days, 9 hours left to enroll

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question