Solved

TEdit but rich one

Posted on 1997-07-18
3
214 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi 2010 Export to pdf 2 287
TVirtualStringTree  search using TEdit 7 106
drawing animated level bar based on numbers 3 88
How to load 2 images in same column in Delphi 2 32
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

912 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

20 Experts available now in Live!

Get 1:1 Help Now