Solved

TEdit but rich one

Posted on 1997-07-18
3
220 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 2

Expert Comment

by:icampbe1
ID: 1339153
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
ID: 1339154
Edited text of question
0
 
LVL 4

Accepted Solution

by:
erajoj earned 100 total points
ID: 1339155
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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

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…
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…

734 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