Solved

RichEdit w/Transparent background?

Posted on 1997-05-16
1
1,384 Views
Last Modified: 2013-11-22
I'm New to making my own components but could someone give me an example on how to make the background of a RichEdit component transparent? Couldn't I make a new component and inherit everything then override the paint command or just change the brush style to bsClear for the background? I need an example to work from. Please Help!!!!!

Thanks,
Rick S.
0
Comment
Question by:Rick_S
1 Comment
 
LVL 4

Accepted Solution

by:
StevenB earned 80 total points
ID: 1336365
 Unfortunately making a transparent RichEdit is not as simple as just overriding the paint method. The delphi TRichEdit is a wrapper object for a windows RichEdit component, therefore the paint functions are not in the delphi VCL source code, rather embedded in the windows system. It is possible to make a transparent windowed control using API calls, but it's quite tricky and I suspect that it's not the best approach for a TRichEdit,(If only because I've been looking for transparent RichEdits for some time now, and I'd have found one if anyone had done it). There are two options really available to you:

1) Start from scratch and write your own RTF display object. This needn't be as huge a task as it first seems, if you are only interested in Rich Text labels, rather than editors.
2) Obtain one of the many components avaiable on the Web which do this sort of thing for you.

  If you opt for the first method then good luck, you'll be needing the RTF specifications which I'll happily mail to you if you want. If you go for the second method thaen you could do a lot worse than if you checked out the following:

A Transparent RichEdit :
http://members.aol.com/jziersch/index.html

General Component Sites:
http://www.intermid.com/sherlock/compmall.htm
http://SunSITE.icm.edu.pl/delphi/
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
Wininet read php file from internet issue 6 82
Delphi selector screen 2 70
Delphi Form ownership 4 73
FMX and jaudiotracker playing memory stream 29 67
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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

867 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

25 Experts available now in Live!

Get 1:1 Help Now