Solved

TEdit but rich one

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

830 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