Solved

RichEdit w/Transparent background?

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

822 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