Solved

RichEdit w/Transparent background?

Posted on 1997-05-16
1
1,405 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
HTML text in the body of an email (delphi code) 12 167
Run video youtube webbrowse 10 65
Unique identifier on a terminal server (rdp) 4 67
shape, triangle, dbctrlgrid 3 17
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…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

856 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