Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 225
  • Last Modified:

TEdit but rich one

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
topalzzz
Asked:
topalzzz
1 Solution
 
icampbe1Commented:
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
 
topalzzzAuthor Commented:
Edited text of question
0
 
erajojCommented:
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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