[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

RichEdit w/Transparent background?

Posted on 1997-05-16
1
Medium Priority
?
1,503 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 4

Accepted Solution

by:
StevenB earned 160 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

656 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