• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 360
  • Last Modified:

shifting text in a richedit

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.  

EzPete.


RichEdit-Example.png
0
ezpete
Asked:
ezpete
  • 2
1 Solution
 
HypoCommented:
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...

/Hypo
0
 
HypoCommented:
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?

e.g.
  AnsiReplaceStr(YourUDPDataAsText, #13#10, '');
0
 
ezpeteAuthor Commented:
Hello,

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.

EzPete
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now