Solved

TEdit but rich one

Posted on 1997-07-18
3
213 Views
Last Modified: 2010-04-06
How can I make TEdit look like the Delphi's IDE. With different fonts in one line (the Font proprty changes the font of the whole text), styles and graphics. If this is impossible, which control shall I use (except TRichEdit). I want to create a normal text viewer, but the source (which I read text from) is encoded and I can read ony one paragraph at a time. I tried using TRichEdit, but it needs to obtain the whole text (richtext formated) and I have the n-th paragraph at a time
0
Comment
Question by:topalzzz
3 Comments
 
LVL 2

Expert Comment

by:icampbe1
Comment Utility
I'm not sure what you mean.  You can change fonts in a TEdit with the font property.  Is it graphics you are asking about?  Did you try to override the controls paint method yet?  I dont want to answer with something you have already tried.
0
 

Author Comment

by:topalzzz
Comment Utility
Edited text of question
0
 
LVL 4

Accepted Solution

by:
erajoj earned 100 total points
Comment Utility
Can you not use TRichEdit? Trap the #13 OnKeyPress and set
WordWrap to false.
Then it will just be problems if you paste multiline text
into the control!?
There is a possibility to create a single line RichEdit class
decending (as TRichEdit) from TCustomEdit without the
ES_MULTILINE style. But that would take a few hours, hours I
don't have right now. You could check it yourself...

/// John

0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now